MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / Label

Function Label

apps/ui/src/components/ui/label.tsx:9–23  ·  view source on GitHub ↗
({
  className,
  ...props
}: React.ComponentProps<typeof LabelPrimitive.Root>)

Source from the content-addressed store, hash-verified

7import { cn } from "@/lib/classnames";
8
9function Label({
10 className,
11 ...props
12}: React.ComponentProps<typeof LabelPrimitive.Root>) {
13 return (
14 <LabelPrimitive.Root
15 data-slot='label'
16 className={cn(
17 "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
18 className
19 )}
20 {...props}
21 />
22 );
23}
24
25export { Label };

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected