WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit aecc957

Browse files
committed
Improve docs for Slate Component
1 parent 2c9cc3c commit aecc957

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/libraries/slate-react/slate.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ type SlateProps = {
1212
value: Descendant[]
1313
children: React.ReactNode
1414
onChange?: (value: Descendant[]) => void
15+
onSelectionChange?: (selection: Selection) => void
16+
onValueChange?: (value: Descendant[]) => void
1517
}
1618
```
1719

0 commit comments

Comments
 (0)