Slate is a React-based toolkit for building rich, customizable text editors. Plugin-first design supports nested documents, custom schemas, and collaboration-friendly data models.
Overview
Slate is a framework for creating rich text editing experiences in web applications. It targets editors similar to those in document and publishing products, while keeping application code organized through a plugin architecture rather than a fixed feature set.
Core editing behavior is built from composable plugins on top of React, so teams can define their own document schema, inline types, void nodes, and commands. The document model is a nested tree analogous to the DOM, which supports tables, embeds, mentions, and other structured content.
Programmatic document transforms, serialization to formats such as HTML and Markdown, and a data model intended to support collaborative editing later are central design goals. Examples cover plain and rich text, hovering toolbars, paste handling, and read-only modes.
Slate is distributed as a monorepo of npm packages and remains in beta, with APIs that may still change as the architecture matures.
Key features
- Plugin-first customizable editing
- Schema-less flexible document model
- Nested tree document structure
- React-based editor views
- Intuitive command API
- Collaboration-oriented operations
- HTML and Markdown serialization
- Bundled example implementations
Use cases
- In-app document editors
- CMS rich text fields
- Comment and mention UIs
- Markdown-style writing surfaces
- Custom collaborative editors