@canner/slate-icon-code

A slate icon for code

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@canner/slate-icon-code
Minified + gzip package size for @canner/slate-icon-code in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.