@artibox/slate-toolbar
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

@artibox/slate-toolbar

Slate toolbar.

npm package npm downloads

Introduction

Quick and easy way to implement medium like toolbar in your slate editor.

Installation

npm install @artibox/slate-toolbar --save

or

$ yarn add @artibox/slate-toolbar

Usage

import React from 'react';
import { Toolbar as ToolbarIcon } from '@artibox/icons';
import { createArtiboxEditor } from '@artibox/slate-editor';
import { Toolbar } from '@artibox/slate-toolbar';

const plugins = [
  Toolbar.forPlugin({
    disabledBlocks: [
      /* ... */
    ],
    expandedTools: [
      /* ... */
    ],
    collapsedTools: [
      /* ... */
    ]
  })
];

const Editor = createArtiboxEditor({
  plugins
});

export default Editor;

API

Readme

Keywords

none

Package Sidebar

Install

npm i @artibox/slate-toolbar

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

55.4 kB

Total Files

64

Last publish

Collaborators

  • fantasywind