Skip to content
Menu

Data display

Shortcut key chip

Shortcut key chip: Small pill-shaped chips representing individual keyboard keys, placed side by side to spell out a shortcut.

Using Shortcut key chip

Shortcut key chip uses the inline preview frame with a light/dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
keystext⌘ KUp to 12 characters
sizeselectmdOptions: sm, md, lg
toneselectmutedOptions: muted, solid
accentcolor#FF4D8DNo additional limit in the metadata.
Which frameworks are available for Shortcut key chip?

Shortcut key chip is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Shortcut key chip depend on?

The React metadata lists no additional npm dependencies beyond React.

What accessibility details are visible in Shortcut key chip?

The React source for Shortcut key chip includes: attributes and handlers (aria-hidden, aria-label); explicit roles (img). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Shortcut key chip handle reduced motion?

The source scan found no direct useReducedMotion() or matchMedia preference read in Shortcut key chip's index.tsx. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components