Slate Component
Slate(props: SlateProps): React.JSX.Element
Props
type SlateProps = {
editor: ReactEditor
value: Descendant[]
children: React.ReactNode
onChange?: (value: Descendant[]) => void
onSelectionChange?: (selection: Selection) => void
onValueChange?: (value: Descendant[]) => void
}props.editor: ReactEditor
props.value: Descendant[]
props.children: React.ReactNode
props.onChange: (value: Descendant[]) => void
props.onValueChange?: (value: Descendant[]) => void
props.onSelectionChange?: (selection: Selection) => void
Last updated