Open command menu⌘K
Toggle theme⌘J
Focus search/
Close dialogEsc
Installation
$ pnpm dlx shadcn@latest add @synccn/kbdFirst time in this project? Connect synccn with one command.
Usage
import { Kbd } from "@/components/ui/kbd";<Kbd>⌘</Kbd><Kbd>K</Kbd>API reference
Generated from the component's TypeScript types, so it always matches the code.
PropTypeDescription
- className
stringExtra classes for the root element.
- children
React.ReactNodeContent to render.
Also accepts every standard <div> attribute, and forwards its ref.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA roles: separator
- ARIA attributes: aria-orientation
More display
CardSurface with header, content and footer slots.BadgeSmall status label with an optional dot.AvatarImage with initials fallback, presence dot and stacked groups.SeparatorHorizontal, vertical or labelled divider.AccordionExpanding sections with smooth height animation.TabsPill or underline tabs with a sliding indicator and arrow keys.