# @artibox/slate-toolbar

Latest version **1.2.0** (published 2020-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @artibox/slate-toolbar
pnpm add @artibox/slate-toolbar
yarn add @artibox/slate-toolbar
bun add @artibox/slate-toolbar
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2020-09-26 |
| First published | 2019-12-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 9 |
| Unpacked size | 54.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Rytass |
| Maintainers | jay0328, fantasywind |

## Links

- npm: https://www.npmjs.com/package/@artibox/slate-toolbar
- Repository: https://github.com/React-Artibox/artibox
- Homepage: https://github.com/React-Artibox/artibox#readme
- Issues: https://github.com/React-Artibox/artibox/issues
- npm.io page: https://npm.io/package/@artibox/slate-toolbar

## Dependencies (9)

- [tslib](https://npm.io/package/tslib.md) ^1.10.0
- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [@types/react](https://npm.io/package/@types/react.md) ^16.9.15
- [@types/slate](https://npm.io/package/@types/slate.md) ^0.47.5
- [@artibox/icons](https://npm.io/package/@artibox/icons.md) ^1.0.0
- [@types/classnames](https://npm.io/package/@types/classnames.md) ^2.2.9
- [@types/slate-react](https://npm.io/package/@types/slate-react.md) ^0.22.9
- [@artibox/components](https://npm.io/package/@artibox/components.md) ^1.2.0
- [@artibox/slate-common](https://npm.io/package/@artibox/slate-common.md) ^1.2.0

## Recent versions

- 1.2.0 (latest) — 2020-09-26
- 1.1.0 — 2020-09-14
- 1.0.1 — 2020-05-13
- 1.0.0 — 2020-05-12
- 0.2.0 — 2020-01-06
- 0.1.2 — 2019-12-10
- 0.1.1 — 2019-12-09
- 0.1.0 — 2019-12-09

## README

<div align="center">
  <img
    src="https://raw.githubusercontent.com/ianstormtaylor/slate/master/docs/images/banner.png"
    height="200"
  />
</div>

<h1 align="center">@artibox/slate-toolbar</h1>

<div align="center">

[Slate](https://github.com/ianstormtaylor/slate) toolbar.

[![npm package](https://img.shields.io/npm/v/@artibox/slate-toolbar.svg?maxAge=60)](https://www.npmjs.com/package/@artibox/slate-toolbar)
[![npm downloads](https://img.shields.io/npm/dt/@artibox/slate-toolbar.svg?maxAge=60)](https://www.npmjs.com/package/@artibox/slate-toolbar)

</div>

## Introduction

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

## Installation

```bash
npm install @artibox/slate-toolbar --save

or

$ yarn add @artibox/slate-toolbar
```

## Usage

```js
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

- [constants](./src/constants.ts)
- [typings](./src/typings.ts)
- [Toolbar.forPlugin](./src/toolbar.tsx#L19)

---
_Source: https://npm.io/package/@artibox/slate-toolbar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
