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> );}Examples
Section titled “Examples”Single Key
Section titled “Single Key”<Kbd>Enter</Kbd>Key Combination
Section titled “Key Combination”<Kbd.Group> <Kbd>Shift</Kbd> <Kbd>+</Kbd> <Kbd>P</Kbd></Kbd.Group>With Icons
Section titled “With Icons”<Kbd> <CommandIcon className="size-3" /></Kbd>Accessibility
Section titled “Accessibility”The Kbd component displays keyboard shortcuts in an accessible way.