Skip to content

KeyboardShortcutsPanel

betav1.0.0

Scannable reference panel for keyboard shortcuts. Three trigger modes: inline (dedicated pages), button (sidebar/settings), and kbd (global ? key). Closes H7 (Flexibility/Efficiency) by surfacing accelerators, and H10 (Help/Documentation) via ambient self-documentation. Includes KeyboardBadge sub-component for styled <kbd> key display. Supports grouping, context-filtering, and multi-platform key variants.

NavigationInteractive/Storybook ↗
import { KeyboardShortcutsPanel } from "@danagraph/design-system"
Loading demo…

Props

shortcutsrequired
Type ShortcutEntry[]Default —

Array of shortcut definitions with label, keys, group, description, and optional context tag.

trigger
Type "inline" | "button" | "kbd"Default "inline"

How the panel is revealed. inline=always shown, button=toggle button, kbd=global ? key.

triggerLabel
Type stringDefault "Keyboard Shortcuts"

Label shown on the trigger button.

title
Type stringDefault "Keyboard Shortcuts"

Panel heading.

defaultGroup
Type stringDefault —

Pre-selected group filter on open.

context
Type stringDefault —

Current context key. When set, only shortcuts with matching context (or no context) are shown.

semantictypesurfacebordershadow
Design Rationale

This component was designed to express:

Explore Related

Was this helpful?