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 DocumentationAtlas ContentSourcing 1 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  1cef4820_649c_1ffb_1a2e_229b806c210f["kbd.tsx"]
  191e4a89_25e4_f7a3_d5fb_d71d101e0990["utils"]
  1cef4820_649c_1ffb_1a2e_229b806c210f --> 191e4a89_25e4_f7a3_d5fb_d71d101e0990
  style 1cef4820_649c_1ffb_1a2e_229b806c210f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { cn } from "@/examples/radix/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 }

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 DocumentationAtlas domain, ContentSourcing 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/radix/ui/kbd.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/radix/ui).

Analyze Your Own Codebase

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

Try Supermodel Free