MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / Kbd

Function Kbd

src/components/ui/kbd.tsx:3–16  ·  view source on GitHub ↗
({ className, ...props }: React.ComponentProps<"kbd">)

Source from the content-addressed store, hash-verified

1import { cn } from "@/lib/utils"
2
3function Kbd({ className, ...props }: React.ComponentProps<"kbd">) {
4 return (
5 <kbd
6 data-slot="kbd"
7 className={cn(
8 "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",
9 "[&_svg:not([class*='size-'])]:size-3",
10 "[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",
11 className
12 )}
13 {...props}
14 />
15 )
16}
17
18function KbdGroup({ className, ...props }: React.ComponentProps<"div">) {
19 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected