Markdown Input

Attribute Type Documentation Default Value
id :any

HTML id attribute

name :any

HTML name attribute for form submission

value :any

markdown content value

field %FormField{}

a form field struct retrieved from the form, sets id/name/value automatically

label :string

text label displayed above the editor

placeholder :string

placeholder text shown when editor is empty

disabled :boolean

disables the editor

false
readonly :boolean

makes the editor read-only

false
theme :string

code syntax highlighting theme for the preview pane

no_mermaid :boolean

disable Mermaid diagram rendering in the preview pane

false
no_preview :boolean

hide the preview tab and toolbar; write-only mode

false
auto_grow :boolean

grow the write area with its content

false
upload_url :string

POST endpoint for file uploads; server must return {url: string}

max_words :integer

soft word cap shown in status bar (warning at 80%, error at 100%)

resize :string

editor resize behavior

live_preview :boolean

enable live preview rendering

false
debounce :integer

debounce delay (ms) for preview rendering

class :any

additional CSS classes

rest :global
bottom :slot

replaces the entire bottom status bar

Show slot attributes Hide slot attributes
class :any

wrapper CSS classes

bottom_start :slot

left section of the bottom bar (default: attach files button)

Show slot attributes Hide slot attributes
class :any

wrapper CSS classes

bottom_end :slot

right section of the bottom bar (default: word/char count)

Show slot attributes Hide slot attributes
class :any

wrapper CSS classes