TheSunny
doc-ios
doc-ios
  • 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
    • Changes
    • Data Model
    • Plugins
    • Rendering
    • Schemas
  • General
    • Plugins
    • Resources
    • Contributing
    • Changelog
    • FAQ
  • Slate Core
    • Block
    • Change
    • Character
    • Data
    • Document
    • Inline
    • Mark
    • Node
    • Operation
    • Range
    • Schema
    • Text
    • Value
    • setKeyGenerator
    • resetKeyGenerator
  • Slate React
    • Editor
    • Plugins
    • Custom Nodes
    • Core Plugins
    • cloneFragment
    • findDOMNode
    • findDOMRange
    • findNode
    • findRange
    • getEventRange
    • getEventTransfer
    • setEventTransfer
  • Other Packages
    • slate-html-serializer
    • slate-hyperscript
    • slate-plain-serializer
    • slate-prop-types
    • slate-schema-violations
    • slate-simulator
  • Contributing
    • iOS Development Guide
Powered by GitBook
On this page
  • Example
  • Exports
  • block
  • blocks
  • change
  • character
  • characters
  • data
  • document
  • history
  • inline
  • inlines
  • leaf
  • leaves
  • mark
  • marks
  • node
  • nodes
  • range
  • ranges
  • schema
  • stack
  • 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,
    schema: Types.schema.isRequired,
    value: Types.value.isRequired,
  }

  ...

}

Exports

block

Ensure that a value is a Slate Block.

blocks

change

Ensure that a value is a Slate Change.

character

Ensure that a value is a Slate Character.

characters

data

Ensure that a value is a Slate Data.

document

Ensure that a value is a Slate Document.

history

Ensure that a value is a Slate History.

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

schema

Ensure that a value is a Slate Schema.

stack

Ensure that a value is a Slate Stack.

text

texts

value

Ensure that a value is a Slate Value.

Previousslate-plain-serializerNextslate-schema-violations

Last updated 7 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 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
Character
Inline
Leaf
Mark
Node
Range
Text
Text