slate-vue3

slate-react library implemented with vue3
19,159 98
Install
npm install slate-vue3
Latest Version:1.0.2
Vue:3
License:MIT
Last Updated:Oct 21, 2026
Links: GitHub  ·  npm
Maintainer: guanerjia

[!IMPORTANT] 🚧 Major Refactor Notice

This project has undergone a large-scale refactor. The core library and all surrounding ecosystem packages have been fully replaced with implementations identical to the official Slate. If you are on an older version, please read the migration guide carefully — legacy APIs may no longer be compatible.

Why use it?

  1. :sparkles: Highly customizable features, use slate core at the bottom level
  2. :zap: Use vue3 for high-performance rendering, and later connect to vapor mode
  3. :coffee: The latest version of the core, design tends to be stable

How to use?

1. Install slate-vue3
npm install slate-vue3
2. Now, you can use it in vue-sfc :point_right: live demo
<script setup lang="ts">
import { Slate, Editable, createReactiveEditor } from "slate-vue3";

const initialValue = [
  {
    type: "paragraph",
    children: [{ text: "Let's start" }],
  },
];
const editor = createReactiveEditor();
editor.children = initialValue;
</script>

<template>
  <Slate :editor>
    <Editable />
  </Slate>
</template>

Examples

To get a sense for how you might use Slate, check out a few of the examples:

If you have an idea for an example that shows a common use case, pull request it!

Documentation

This document serves only as a supplement to the slate document and mainly provides case studies and differences between slate-vue3 and slate-react

If you're using slate for the first time, check out the Getting Started walkthroughs and the Concepts to familiarize yourself with slate's architecture and mental models.

Sub packages

Due to the complexity of maintaining multiple packages and the lack of reusability of sub packages in other frameworks, slate-vue3 does not use workspace and only performs sub packaging during packaging

Package Version Description
slate-vue3/dom DOM implementation of slate
slate-vue3/yjs integration of slate-yjs

Contributing!

Welcome to provide suggestions on the issue, it would be even better if PR could be mentioned along with it

slate-vue3 is MIT-licensed.

Related Packages

mavon-editor

Vue markdown editor

556,330 6,562
x-mavon-editor

Vue-next markdown editor

10,809 6,559
steem-editor

Vue markdown editor

5,835
@jx3box/markdown

Vue markdown editor

1,748 0
@zhennann/mavon-editor

Vue markdown editor

1,738 6,560

Version History

Version Released License
1.0.2 MIT
1.0.1 MIT
1.0.0 MIT
0.15.0 MIT
0.14.1 MIT