RichTextProps
Props for RichText
Properties
className?
optionalclassName:string
Additional CSS classes for the editor container
debounceTime?
optionaldebounceTime:number
Debounce time in milliseconds for updating the value
Default
300
defaultValue?
optionaldefaultValue:string
Default value for an uncontrolled component
id?
optionalid:string
Unique identifier for the editor
invalid?
optionalinvalid:boolean
If true, the component will appear invalid
label?
optionallabel:string
Text for the floating label
onBlur?
optionalonBlur: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()?
optionalonEditorCreated: (v) =>void
Event handler called when the Quill editor instance is created
Parameters
v
Quill
Returns
void
onFocus?
optionalonFocus:VoidFuncNoParam
Event handler called when the editor gains focus
placeholder?
optionalplaceholder:string
Placeholder text to display when the editor is empty
readOnly?
optionalreadOnly:boolean
If true, the editor will be read-only
value
value:
string
Current value of the editor (HTML string)