Home / Function/ Kbd() — ui Function Reference

Kbd() — ui Function Reference

Architecture documentation for the Kbd() function in kbd.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  4c3e814b_45e5_b377_28c2_c6492e0b9a1c["Kbd()"]
  53632418_189c_0e8e_af5d_acce656eaf3c["kbd.tsx"]
  4c3e814b_45e5_b377_28c2_c6492e0b9a1c -->|defined in| 53632418_189c_0e8e_af5d_acce656eaf3c
  style 4c3e814b_45e5_b377_28c2_c6492e0b9a1c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/ui-rtl/kbd.tsx lines 3–14

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}
    />
  )
}

Subdomains

Frequently Asked Questions

What does Kbd() do?
Kbd() is a function in the ui codebase, defined in apps/v4/examples/base/ui-rtl/kbd.tsx.
Where is Kbd() defined?
Kbd() is defined in apps/v4/examples/base/ui-rtl/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