MarkdownProps
Props of FdMarkdown
Extends VariantProps of markdownVariants
Extends
VariantProps<typeofmarkdownVariants>
Properties
disabled?
optionaldisabled:boolean
Disables user input textarea becomes inactive.
error?
optionalerror:boolean
Indicates validation error state.
id
id:
string
Unique element Id used to link textarea, preview, and icons.
label
label:
string
Label text displayed above the textarea.
onBlur()?
optionalonBlur: (v) =>void
Triggered when focus leaves the textarea.
Parameters
v
string
Returns
void
onChange()?
optionalonChange: (v) =>void
Triggered when markdown text changes.
Parameters
v
string
Returns
void
readOnly?
optionalreadOnly:boolean
Makes the textarea read-only content.
required?
optionalrequired:boolean
Indicates whether the field is required.
showContentPreview?
optionalshowContentPreview:boolean
Enables markdown content preview below the input.
skipAnimationOnce?
optionalskipAnimationOnce:boolean
Skips label animation once during the first render.
value?
optionalvalue:string
Default value of the markdown text.