@tracoco/slate-icon-italic

1.5.0 • Public • Published

@tracoco/slate-icon-italic

npm version

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

Readme

Keywords

none

Package Sidebar

Install

npm i @tracoco/slate-icon-italic

Weekly Downloads

1

Version

1.5.0

License

MIT

Unpacked Size

3.54 kB

Total Files

10

Last publish

Collaborators

  • haymant