Kbd
A keyboard key indicator component for displaying keyboard shortcuts and key combinations
KKK
+K
npx shadcn@latest add @roiui/kbdnpx shadcn@latest add @roiui/kbd-tailwindanatomy
Component props
Prop
Type
Default
Name
sizeDescription
Size variant of the keyboard key indicator
Type
"sm" | "md" | "lg"Default
"md"Name
classNameDescription
Additional CSS classes to apply to the kbd element
Type
stringDefault
-
Name
childrenDescription
The key label to display. Special handling for command key symbols (⌘ or ctrl)
Type
ReactNodeDefault
-