From 2c9cc3cd8119dab2f9c8ebe1359044f110981be3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gr=C3=B8ngaard?= Date: Mon, 30 Dec 2024 21:21:28 +0100 Subject: [PATCH] docs: document `props.onValueChange` and `props.onSelectionChange` (#5788) --- docs/libraries/slate-react/slate.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/libraries/slate-react/slate.md b/docs/libraries/slate-react/slate.md index 4facd29fc4..e46ccf2af4 100644 --- a/docs/libraries/slate-react/slate.md +++ b/docs/libraries/slate-react/slate.md @@ -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.