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';Examples
Default
In a menu
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| keysrequired | string[] | — | 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
Web only
Keyboard Shortcut has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.