Skip to content
nexubDesign System
v11.9.0

Components · Inline Primitives

Keyboard Shortcut

StableAdded v0.0.1

A key combination as `Kbd` keys joined by plus signs, read as one label.

import { KeyboardShortcut } from '@nexub/react';
View as Markdown

Examples

Default

⌘KCtrlShiftP

In a menu

  • Search

    ⌘K
  • New project

    ⌘N
  • Save

    ⌘S

Props

Props
PropTypeDefaultDescription
keysrequiredstring[]—The keys in order, e.g. ['⌘', 'K']. Read as "⌘+K" (aria-label); pass your own aria-label for a spoken form like "Command K".

On iOS & Android