@canner/slate-icon-align

A set of alignment icons in slate editors

Stats

StarsIssuesVersionUpdatedCreatedSize
@canner/slate-icon-align
1.5.03 years ago4 years agoMinified + gzip package size for @canner/slate-icon-align in KB

Readme

@canner/slate-icon-align

npm version

Icons

Export components:

  • AlignCenter: value center
  • AlignLeft: value left
  • AlignRight: value right

This will add a data key called align (change the data key by passing this.props.type): value is one of center, left, right.

import { AlignCenter, AlignLeft, AlignRight } from "@canner/slate-icon-align";

Props

  • type: block's data key name. Default: align

Plugin

import { ParagraphPlugin } from "@canner/slate-icon-shared";

const plugin = [ParagraphPlugin(option)];

Hot key

Align center:

Ctrl+opt+c

Align left:

Ctrl+opt+l

Align right:

Ctrl+opt+r

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.