kbd.tsx
This file
Path
apps/web/src/components/ui/kbd.tsx
26 lines · 837 bytes · TypeScript
Last changed by
Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7
History of this fileTake it
Give the web its W9 dependencies, components, project nav, line and revision helpers, and a stub for every new pageoscabrielbefore adoption254268a
lines 1–7why, one step back1import { cn } from "cn";23function Kbd({ className, ...props }: React.ComponentProps<"kbd">) {4 return (5 <kbd6 data-slot="kbd"7 className={cn(Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7
line 8why, one step back8 "bg-background border-rule in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 text-label pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-md border px-1 font-sans font-medium select-none [&_svg:not([class*='size-'])]:size-3",Give the web its W9 dependencies, components, project nav, line and revision helpers, and a stub for every new pageoscabrielbefore adoption254268a
lines 9–26why, one step back9 className10 )}11 {...props}12 />13 );14}1516function KbdGroup({ className, ...props }: React.ComponentProps<"div">) {17 return (18 <kbd19 data-slot="kbd-group"20 className={cn("inline-flex items-center gap-1", className)}21 {...props}22 />23 );24}2526export { Kbd, KbdGroup };