Slate Component
Slate(props: SlateProps): React.JSX.Element
Slate(props: SlateProps): React.JSX.ElementProps
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.editor: ReactEditorprops.value: Descendant[]
props.value: Descendant[]props.children: React.ReactNode
props.children: React.ReactNodeprops.onChange: (value: Descendant[]) => void
props.onChange: (value: Descendant[]) => voidprops.onValueChange?: (value: Descendant[]) => void
props.onValueChange?: (value: Descendant[]) => voidprops.onSelectionChange?: (selection: Selection) => void
props.onSelectionChange?: (selection: Selection) => voidLast updated