THEME
MOTION
HAPTIC
SOUND

KBD

Keyboard shortcut indicator — each key in its own bordered box, joined by a separator.

Live demo

Import

import { Kbd } from '@cathode-ui/react';

Props

Name Type Default Required Description
keys string | string[] yes String ("Ctrl+K") is split on + or -. Pass an array for keys that literally contain "+".
separator string +
size 'sm'|'md' md

Examples

pair

<Kbd keys="Ctrl+K" />

array

<Kbd keys={["Shift","+","Tab"]} />

Accessibility

Role: group

Feedback

Hapticnone
Soundnone

← All components