npm.io
1.5.0 • Published 7 years ago

@canner/slate-icon-italic

Licence
MIT
Version
1.5.0
Deps
2
Size
66 kB
Vulns
0
Weekly
0

@canner/slate-icon-italic

npm version

Icon

import Italic from "@canner/slate-icon-italic";

Props

  • type: Mark type name. Default: ITALIC

Plugin

import { ItalicPlugin } from "@canner/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/>