MCPcopy Create free account
hub / github.com/arctic-cli/interface / Kbd

Function Kbd

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

Source from the content-addressed store, hash-verified

3import { cn } from "@/lib/utils";
4
5function Kbd({ className, ...props }: React.ComponentProps<"kbd">) {
6 return (
7 <kbd
8 className={cn(
9 "pointer-events-none inline-flex h-5 min-w-5 select-none items-center justify-center gap-1 rounded bg-muted px-1 font-medium font-sans text-muted-foreground text-xs [&_svg:not([class*='size-'])]:size-3",
10 className,
11 )}
12 data-slot="kbd"
13 {...props}
14 />
15 );
16}
17
18function KbdGroup({ className, ...props }: React.ComponentProps<"kbd">) {
19 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected