mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 09:43:58 +02:00
Add props. prefix to Slate component docs where it was missing
This commit is contained in:
@@ -27,10 +27,10 @@ This prop is deceptively named.
|
||||
|
||||
Slate once was a controlled component (i.e. it's contents were strictly controlled by the `value` prop) but due to features like its edit history which would be corrupted by direct editing of the `value` it is no longer a controlled component.
|
||||
|
||||
#### `children: React.ReactNode`
|
||||
#### `props.children: React.ReactNode`
|
||||
|
||||
The `children` which must contain an `Editable` component.
|
||||
|
||||
#### `onChange: (value: Descendant[]) => void`
|
||||
#### `props.onChange: (value: Descendant[]) => void`
|
||||
|
||||
An optional callback function which you can use to be notified of changes in the editor's value.
|
||||
|
Reference in New Issue
Block a user