Home / File/ kbd.tsx — ui Source File

kbd.tsx — ui Source File

Architecture documentation for kbd.tsx, a tsx file in the ui codebase. 1 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 1 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  e9273769_22f9_902e_2519_d77af899b14b["kbd.tsx"]
  79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"]
  e9273769_22f9_902e_2519_d77af899b14b --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81
  style e9273769_22f9_902e_2519_d77af899b14b 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 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none",
        "[&_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 }

Subdomains

Functions

Dependencies

  • utils

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 apps/v4/registry/new-york-v4/ui/kbd.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/ui).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free