Slate will render custom nodes for Block and Inline models, based on what you pass in as your schema. This allows you to completely customize the rendering behavior of your Slate editor.
A set of React children elements that are composed of internal Slate components that handle all of the editing logic of the editor for you. You must render these as the children of your non-void nodes. For example:
editor
Editor
A reference to the Slate <Editor> instance. This allows you to retrieve the current value of the editor, or perform a change on the value. For example:
isSelected
Boolean
A boolean representing whether the node you are rendering is currently selected. You can use this to render a visual representation of the selection.
This boolean is true when the node is selected and the editor is blurred.
isFocused
Boolean
A boolean representing whether the node you are rendering is currently focused. You can use this to render a visual representation of the focused selection.