Skip to main content

MarkdownProps

Props of FdMarkdown

Extends VariantProps of markdownVariants

Extends​

Properties​

disabled?​

optional disabled: boolean

Disables user input textarea becomes inactive.


error?​

optional error: 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()?​

optional onBlur: (v) => void

Triggered when focus leaves the textarea.

Parameters​

v​

string

Returns​

void


onChange()?​

optional onChange: (v) => void

Triggered when markdown text changes.

Parameters​

v​

string

Returns​

void


readOnly?​

optional readOnly: boolean

Makes the textarea read-only content.


required?​

optional required: boolean

Indicates whether the field is required.


showContentPreview?​

optional showContentPreview: boolean

Enables markdown content preview below the input.


skipAnimationOnce?​

optional skipAnimationOnce: boolean

Skips label animation once during the first render.


value?​

optional value: string

Default value of the markdown text.