npm.io
1.5.0 • Published 7 years ago

@canner/slate-icon-code

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

@canner/slate-icon-code

npm version

Icon

import Code from "@canner/slate-icon-code";

Props

  • type: Mark type name. Default: CODE

Plugin

import { CodePlugin } from "@canner/slate-icon-code";

// this will add render method for this mark, and also support hot key for bold.
const plugins = [CodePlugin(options)];
Hot key

CMD+`

Options
  • type: Mark type name. Default: CODE
  • tagName: Rendered tagName in this plugin. Default <code/>