🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

slate-vue3

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slate-vue3

slate-react library implemented with vue3

0.4.2
latest
Source
npm
Version published
Weekly downloads
223
42.95%
Maintainers
1
Weekly downloads
 
Created
Source

slate-react library implemented with vue3


Why use it?

  • :sparkles: Highly customizable features, use slate core at the bottom level
  • :zap: Use vue3 for high-performance rendering, and later connect to vapor mode
  • :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, } from "slate-vue3";
import { createEditor } from "slate-vue3/core";
import { withDOM } from "slate-vue3/dom";
import { withHistory } from "slate-vue3/history";

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

<template>
  <Slate :editor="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

PackageVersionDescription
slate-vue3/coreslate's core data model logic.
slate-vue3/domDOM implementation of slate
slate-vue3/historya plugin that adds undo/redo history to slate.
slate-vue3/hyperscripta hyperscript tool to write JSX slate documents!
slate-vue3/yjsintegration 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.


Keywords

slate-vue3

FAQs

Package last updated on 06 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts