mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-12 02:03:59 +02:00
Improve docs for Slate Component
This commit is contained in:
@@ -12,6 +12,8 @@ type SlateProps = {
|
|||||||
value: Descendant[]
|
value: Descendant[]
|
||||||
children: React.ReactNode
|
children: React.ReactNode
|
||||||
onChange?: (value: Descendant[]) => void
|
onChange?: (value: Descendant[]) => void
|
||||||
|
onSelectionChange?: (selection: Selection) => void
|
||||||
|
onValueChange?: (value: Descendant[]) => void
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user