Element
objects are a type of node in a Slate document that contain other Element
nodes or Text
nodes. They can be either "blocks" or "inlines" depending on the Slate editor's configuration.
interface Element {children: Node[]}
​Static methods​
​Retrieval methods​
​Check methods​
Check if an element matches a set of props
. Note: This checks custom properties, but it does not ensure that any children are equivalent.
Check if a value
implements the Element
interface.
Check if a value
is an array of Element
objects.