@canner/slate-icon-code

1.5.0 • Public • Published

@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/>

Readme

Keywords

none

Package Sidebar

Install

npm i @canner/slate-icon-code

Weekly Downloads

26

Version

1.5.0

License

MIT

Unpacked Size

212 kB

Total Files

21

Last publish

Collaborators

  • wwwy3y3
  • cannerbot