# @draft-js-plugins/buttons

> Buttons for DraftJS

Latest version **4.3.3** (published 2023-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @draft-js-plugins/buttons
pnpm add @draft-js-plugins/buttons
yarn add @draft-js-plugins/buttons
bun add @draft-js-plugins/buttons
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.3.3 |
| Published | 2023-08-08 |
| First published | 2020-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 41.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4087 |
| Author | Nik Graf |
| Maintainers | sibelius, fxone, nikgraf, juliankrispel |
| Keywords | editor, wysiwyg, draft, react, ux, components, widget, react-component |

## Links

- npm: https://www.npmjs.com/package/@draft-js-plugins/buttons
- Repository: https://github.com/draft-js-plugins/draft-js-plugins
- Homepage: https://github.com/draft-js-plugins/draft-js-plugins#readme
- Issues: https://github.com/draft-js-plugins/draft-js-plugins/issues
- npm.io page: https://npm.io/package/@draft-js-plugins/buttons

## Dependencies (1)

- [clsx](https://npm.io/package/clsx.md) ^1.2.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 4.3.3 (latest) — 2023-08-08
- 4.3.2 — 2022-08-30
- 4.3.1 — 2022-04-15
- 4.3.0 — 2022-03-11
- 4.2.0 — 2022-02-05
- 4.1.1 — 2021-06-12
- 4.1.0 — 2021-01-25
- 4.0.0 — 2021-01-10
- 4.0.0-beta2 — 2020-11-17
- 4.0.0-beta1 — 2020-11-17

## README

# DraftJS Buttons

## Important: Include after the Editor

For the toolbar to work correctly, you must include the `<Toolbar>` component after the editor component:

```jsx
<Editor .../>
<Toolbar />
```


## Using the Subscript and Superscript buttons requires a custom style map:

```jsx
<Editor
    customStyleMap={{
      SUBSCRIPT: { fontSize: '0.6em', verticalAlign: 'sub' },
      SUPERSCRIPT: { fontSize: '0.6em', verticalAlign: 'super' }
    }}

/>
<Toolbar />
```

---
_Source: https://npm.io/package/@draft-js-plugins/buttons · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
