Skip to content

Commit

Permalink
docs: document props.onValueChange and props.onSelectionChange (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhg authored Dec 30, 2024
1 parent 5c349ad commit 2c9cc3c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/libraries/slate-react/slate.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,11 @@ The `children` which must contain an `Editable` component.
#### `props.onChange: (value: Descendant[]) => void`
An optional callback function which you can use to be notified of changes in the editor's value.
#### `props.onValueChange?: (value: Descendant[]) => void`
`props.onChange` alias.
#### `props.onSelectionChange?: (selection: Selection) => void`
An optional callback function which you can use to be notified of changes of the editor's selection.

0 comments on commit 2c9cc3c

Please sign in to comment.