Kbd() — ui Function Reference
Architecture documentation for the Kbd() function in kbd.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ef1587ab_acc1_636e_41cd_c2153f13cc4a["Kbd()"] a4ac8ad3_9f8a_3889_516e_cd3416840ba6["kbd.tsx"] ef1587ab_acc1_636e_41cd_c2153f13cc4a -->|defined in| a4ac8ad3_9f8a_3889_516e_cd3416840ba6 style ef1587ab_acc1_636e_41cd_c2153f13cc4a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/ui/kbd.tsx lines 3–16
function Kbd({ className, ...props }: React.ComponentProps<"kbd">) {
return (
<kbd
data-slot="kbd"
className={cn(
"bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium",
"[&_svg:not([class*='size-'])]:size-3",
"[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",
className
)}
{...props}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Kbd() do?
Kbd() is a function in the ui codebase, defined in deprecated/www/registry/default/ui/kbd.tsx.
Where is Kbd() defined?
Kbd() is defined in deprecated/www/registry/default/ui/kbd.tsx at line 3.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free