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';
- type: block's data key name. Default:
align
import {ParagraphPlugin} from '@canner/slate-icon-shared';
const plugin = [
ParagraphPlugin(option)
]
Align center:
Ctrl+opt+c
Align left:
Ctrl+opt+l
Align right:
Ctrl+opt+r