Skip to content
OTF Kit logoOTF Kit

Hotkeys

Display

Keyboard shortcut reference list grouped by section.

View in Storybook
Hotkeys
Loading Storybook preview…

Installation

bun add @otfdashkit/ui

Usage

Import Hotkeys from @otfdashkit/ui.

Code
// Hotkeys — Keyboard shortcut reference list grouped by section.
//
// Install:
//   bun add @otfdashkit/ui

import { Hotkeys } from '@otfdashkit/ui'

export function Example() {
  return (
    <Hotkeys>
      {/* your content */}
    </Hotkeys>
  )
}

Props

Props declared in the Hotkeys source. Inherited HTML attributes are not listed.

PropTypeDefaultDescription
keysrequiredstring[]
classNamestring

Related