@tracoco/slate-icon-italic
v1.5.0
Published
A slate icon for italic
Downloads
5
Readme
@tracoco/slate-icon-italic
Icon
import Italic from "@tracoco/slate-icon-italic";
Props
- type: Mark type name. Default:
ITALIC
Plugin
import { ItalicPlugin } from "@tracoco/slate-icon-italic";
// this will add render method for this mark, and also support hot key for italic.
const plugins = [ItalicPlugin(options)];
Hot key
CMD+i
Options
- type: Mark type name. Default:
ITALIC
- tagName: Rendered tagName in this plugin. Default
<i/>