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 53632418_189c_0e8e_af5d_acce656eaf3c["kbd.tsx"] 3d9438e8_7604_787c_4898_907262aff28b["utils"] 53632418_189c_0e8e_af5d_acce656eaf3c --> 3d9438e8_7604_787c_4898_907262aff28b style 53632418_189c_0e8e_af5d_acce656eaf3c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { cn } from "@/examples/base/lib/utils"
function Kbd({ className, ...props }: React.ComponentProps<"kbd">) {
return (
<kbd
data-slot="kbd"
className={cn(
"bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none [&_svg:not([class*='size-'])]:size-3",
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 DocumentationAtlas domain, Changelog 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 apps/v4/examples/base/ui-rtl/kbd.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/base/ui-rtl).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free