Kbd & code
Shows keyboard keys and inline code in text.
Press Esc to close the dialog.
Set aria-label on icon-only controls.
kbd-code-demo.tsx
Installation
The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.
npm
yarn
pnpm
bun
Composition
KbdGroupJoins the keys of one shortcut.
KbdRepeats
InlineCode
Key combination
Put the keys of one shortcut in KbdGroup.
Press CtrlK to open search.
Press CtrlShiftP to show all commands.
kbd-code-group-demo.tsx
Long code
InlineCode wraps a long value and keeps its padding on each line.
Copy the file to src/components/vip-ui/description-list.tsx and update the imports.
kbd-code-wrap-demo.tsx