Slate
ExamplesGitHubSlack
v0.47
v0.47
  • Introduction
  • Walkthroughs
    • Installing Slate
    • Adding Event Handlers
    • Defining Custom Block Nodes
    • Applying Custom Formatting
    • Using Plugins
    • Saving to a Database
    • Saving and Loading HTML Content
  • Guides
    • Commands & Queries
    • Data Model
    • Plugins
    • Rendering
    • Schemas
  • General
    • Plugins
    • Resources
    • Contributing
    • Changelog
    • FAQ
    • Glossary
  • Slate Core
    • Block
    • Commands
    • Data
    • Decoration
    • Document
    • Editor
    • Inline
    • Mark
    • Node
    • Operation
    • Plugins
    • Point
    • Range
    • Schema
    • Selection
    • Text
    • Utils
    • Value
  • Slate React
    • Editor
    • Plugins
    • Rendering
    • Utils
  • Other Packages
    • slate-html-serializer
    • slate-hyperscript
    • slate-plain-serializer
    • slate-prop-types
Powered by GitBook
On this page
  • Example
  • Exports
  • block
  • blocks
  • change
  • data
  • document
  • inline
  • inlines
  • leaf
  • leaves
  • mark
  • marks
  • node
  • nodes
  • range
  • ranges
  • text
  • texts
  • value
  1. Other Packages

slate-prop-types

import Types from 'slate-prop-types'

A set of React prop types for Slate editors and plugins.

Example

import React from 'react'
import Types from 'slate-prop-types'

class Toolbar extends React.Component {

  propTypes = {
    block: Types.block,
    value: Types.value.isRequired,
  }

  ...

}

Exports

block

Ensure that a value is a Slate Block.

blocks

change

Ensure that a value is a Slate Change.

data

Ensure that a value is a Slate Data.

document

Ensure that a value is a Slate Document.

inline

Ensure that a value is a Slate Inline.

inlines

leaf

Ensure that a value is a Slate Leaf.

leaves

mark

Ensure that a value is a Slate Mark.

marks

node

Ensure that a value is a Slate Node.

nodes

range

Ensure that a value is a Slate Range.

ranges

text

texts

value

Ensure that a value is a Slate Value.

Previousslate-plain-serializer

Last updated 5 years ago

Ensure that a value is an immutable List of Slate objects.

Ensure that a value is an immutable List of Slate objects.

Ensure that a value is an immutable List of Slate objects.

Ensure that a value is an immutable Set of Slate objects.

Ensure that a value is an immutable List of Slate objects.

Ensure that a value is an immutable List of Slate objects.

Ensure that a value is a Slate .

Ensure that a value is an immutable List of Slate objects.

Block
Inline
Leaf
Mark
Node
Range
Text
Text