Kbd
uiable/kbdFreeComponent
Kbd component.
Live preview
live · rendered by the registry
Rendered by uiable on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://uiable.com/r/kbd.jsonSource
1import { ComponentProps } from "react"23import { cn } from "@/lib/utils"45function Kbd({ className, ...props }: ComponentProps<"kbd">) {6 return (7 <kbd8 data-slot="kbd"9 className={cn(10 "pointer-events-none inline-flex h-5 items-center gap-1 rounded-lg border border-border bg-background px-1.5 font-mono text-[10px] leading-0 font-medium text-foreground opacity-100 select-none",11 className12 )}13 {...props}14 />15 )16}1718function KbdGroup({ className, ...props }: ComponentProps<"div">) {19 return (20 <kbd21 data-slot="kbd-group"22 className={cn("flex items-center gap-1", className)}23 {...props}24 />25 )26}2728export { Kbd, KbdGroup }
Files it writes
More from uiable
All 712 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | uiable | Components | Free | 2 deps | |
| Alertalert | uiable | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | uiable | Components | Free | 1 dep | |
| Aspect Ratioaspect-ratio | uiable | Components | Free | no deps | |
| Attachmentattachment | uiable | Components | Free | 2 deps | |
| Avataravatar | uiable | Components | Free | 1 dep | |
| Badgebadge | uiable | Components | Free | 2 deps | |
| Breadcrumbbreadcrumb | uiable | Components | Free | 2 deps |
