Docs
Keyboard Input

Keyboard Input

Enable keyboard shortcut formatting in the document.

Loading...

Features

  • Adds support for keyboard shortcut formatting
  • HTML serialization support
  • Preserves KBD tags during paste operations

Installation

npm install @udecode/plate-kbd

Usage

import { KbdPlugin } from '@udecode/plate-kbd';
const plugins = [
  // ...otherPlugins,
  KbdPlugin,
];

Plugins

KbdPlugin

Enables keyboard shortcut formatting with HTML serialization support.

Options

Collapse all

    Basic node configuration.

    • isLeaf: true

    HTML parser configuration for KBD tags.