slate-prop-types
A set of React prop types for Slate editors and plugins.
Example
Exports
block
block
Ensure that a value is a Slate Block
.
blocks
blocks
Ensure that a value is an immutable List
of Slate Block
objects.
change
change
Ensure that a value is a Slate Change
.
character
character
Ensure that a value is a Slate Character
.
characters
characters
Ensure that a value is an immutable List
of Slate Character
objects.
data
data
Ensure that a value is a Slate Data
.
document
document
Ensure that a value is a Slate Document
.
history
history
Ensure that a value is a Slate History
.
inline
inline
Ensure that a value is a Slate Inline
.
inlines
inlines
Ensure that a value is an immutable List
of Slate Inline
objects.
leaf
leaf
Ensure that a value is a Slate Leaf
.
leaves
leaves
Ensure that a value is an immutable List
of Slate Leaf
objects.
mark
mark
Ensure that a value is a Slate Mark
.
marks
marks
Ensure that a value is an immutable Set
of Slate Mark
objects.
node
node
Ensure that a value is a Slate Node
.
nodes
nodes
Ensure that a value is an immutable List
of Slate Node
objects.
range
range
Ensure that a value is a Slate Range
.
ranges
ranges
Ensure that a value is an immutable List
of Slate Range
objects.
schema
schema
Ensure that a value is a Slate Schema
.
stack
stack
Ensure that a value is a Slate Stack
.
text
text
Ensure that a value is a Slate Text
.
texts
texts
Ensure that a value is an immutable List
of Slate Text
objects.
value
value
Ensure that a value is a Slate Value
.
Last updated