1.5.0 • Published 5 years ago

@tracoco/slate-icon-align v1.5.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

@tracoco/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 "@tracoco/slate-icon-align";

Props

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

Plugin

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

const plugin = [ParagraphPlugin(option)];

Hot key

Align center:

Ctrl+opt+c

Align left:

Ctrl+opt+l

Align right:

Ctrl+opt+r