Skip to content

Kbd

The Kbd component displays keyboard key representations and keyboard shortcuts in a visually distinct way.

import { Kbd } from "@rhinolabs/ui";
export default function KbdDemo() {
return (
<div>
<p>
Press <Kbd>Ctrl</Kbd> + <Kbd>K</Kbd> to open search
</p>
<p>
<Kbd.Group>
<Kbd></Kbd>
<Kbd>K</Kbd>
</Kbd.Group>
</p>
</div>
);
}
<Kbd>Enter</Kbd>
<Kbd.Group>
<Kbd>Shift</Kbd>
<Kbd>+</Kbd>
<Kbd>P</Kbd>
</Kbd.Group>
<Kbd>
<CommandIcon className="size-3" />
</Kbd>

The Kbd component displays keyboard shortcuts in an accessible way.