kbd.tsx — ui Source File
Architecture documentation for kbd.tsx, a tsx file in the ui codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR a4ac8ad3_9f8a_3889_516e_cd3416840ba6["kbd.tsx"] 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] a4ac8ad3_9f8a_3889_516e_cd3416840ba6 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 style a4ac8ad3_9f8a_3889_516e_cd3416840ba6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { cn } from "@/lib/utils"
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}
/>
)
}
function KbdGroup({ className, ...props }: React.ComponentProps<"div">) {
return (
<kbd
data-slot="kbd-group"
className={cn("inline-flex items-center gap-1", className)}
{...props}
/>
)
}
export { Kbd, KbdGroup }
Domain
Subdomains
Functions
Dependencies
- utils
Source
Frequently Asked Questions
What does kbd.tsx do?
kbd.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in kbd.tsx?
kbd.tsx defines 2 function(s): Kbd, KbdGroup.
What does kbd.tsx depend on?
kbd.tsx imports 1 module(s): utils.
Where is kbd.tsx in the architecture?
kbd.tsx is located at deprecated/www/registry/default/ui/kbd.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free