From 20cff0e35d468badb2a8125b4522f901c5190d1f Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Thu, 13 Apr 2023 09:38:46 -0700 Subject: [PATCH] Add props. prefix to Slate component docs where it was missing --- docs/libraries/slate-react/slate.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/libraries/slate-react/slate.md b/docs/libraries/slate-react/slate.md index b5b9e2810..4facd29fc 100644 --- a/docs/libraries/slate-react/slate.md +++ b/docs/libraries/slate-react/slate.md @@ -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.