Skip to main content

RichTextProps

Props for RichText

Properties​

className?​

optional className: string

Additional CSS classes for the editor container


debounceTime?​

optional debounceTime: number

Debounce time in milliseconds for updating the value

Default​

300

defaultValue?​

optional defaultValue: string

Default value for an uncontrolled component


id?​

optional id: string

Unique identifier for the editor


invalid?​

optional invalid: boolean

If true, the component will appear invalid


label?​

optional label: string

Text for the floating label


onBlur?​

optional onBlur: VoidFuncNoParam

Event handler called when the editor loses focus


onChange()​

onChange: (v) => void

Event handler called when the editor content changes

Parameters​

v​

string

Returns​

void


onEditorCreated()?​

optional onEditorCreated: (v) => void

Event handler called when the Quill editor instance is created

Parameters​

v​

Quill

Returns​

void


onFocus?​

optional onFocus: VoidFuncNoParam

Event handler called when the editor gains focus


placeholder?​

optional placeholder: string

Placeholder text to display when the editor is empty


readOnly?​

optional readOnly: boolean

If true, the editor will be read-only


value​

value: string

Current value of the editor (HTML string)