MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / Label

Function Label

packages/react/src/components/label.tsx:6–17  ·  view source on GitHub ↗
({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>)

Source from the content-addressed store, hash-verified

4import { cn } from "../lib/utils";
5
6function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {
7 return (
8 <LabelPrimitive.Root
9 data-slot="label"
10 className={cn(
11 "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",
12 className,
13 )}
14 {...props}
15 />
16 );
17}
18
19export { Label };

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected