Atelier UI

Search components…

Search components…

Kbd Shortcuts

Keycap and key-combo components with a Mac/Windows symbol map, shown as a shortcut cheatsheet.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

KbdProps

Also accepts all props of React.ComponentProps<"kbd">

PropTypeDefaultDescription
keyNamestring—A key token such as "mod", "shift", "enter" or a literal like "K". Falls back to children.
platformKbdPlatform"mac"—

KbdGroupProps

Also accepts all props of Omit<React.ComponentProps<"span">, "children">

PropTypeDefaultDescription
keys* requiredstring[]—Combo as key tokens, e.g. ["mod", "K"]
platformKbdPlatform"mac"—
separatorboolean—Show "+" between keys (the Mac style is usually joined without it)

Install

$ npx shadcn@latest add https://chromotion.dev/r/kbd.json

More like this