SShinUI

Kbd

Keyboard shortcut chips with a raised border treatment. Includes a KbdGroup helper for multi-key combos like ⌘K.

keyboardshortcutaccessibility
SearchK·SaveS

Usage

Drop the file into your project and import it. There is no package to install.

usage.tsx
import { Kbd, KbdGroup } from "@/registry/components/kbd";

export function Example() {
  return <Kbd />;
}

Install prerequisites

Every component here relies only on Tailwind and the cn helper from shadcn/ui.

terminal
npm i clsx tailwind-merge

More in Libraries