Key
Save with ⌘ S
Labels a keyboard key. Monospace cap with a 1px frame and heavier bottom edge.
Save with ⌘ S
Three ways in. They share one source, so the pixels match whichever you pick.
npm install @noorddev/vlak-react
// once, next to your app's root
import "@noorddev/vlak-react/css";
import { Kbd, KbdPair } from "@noorddev/vlak-react";Precompiled React and one stylesheet. No compiler to configure. Per-component imports work too: @noorddev/vlak-react/components/kbd.
npx @noorddev/vlak-cli add kbd
The StyleX leaf lands in components/vlak/, for your own compiler to own. See StyleX.
npx shadcn add https://vlak.dev/r/kbd.json
The same registry item, installed by shadcn's CLI.
<link rel="stylesheet" href="node_modules/@noorddev/vlak/css/vlak.css" />
No React. Link vlak.css and use the markup and classes below.
import { Kbd, KbdPair } from "@noorddev/vlak-react";
<KbdPair><Kbd>⌘</Kbd><Kbd>K</Kbd></KbdPair>Also accepts HTMLAttributes<HTMLElement>.
Also accepts HTMLAttributes<HTMLSpanElement>.
<kbd class="rs-kbd">⌘</kbd> <kbd class="rs-kbd">K</kbd>