MCPcopy Index your code
hub / github.com/TypeCellOS/BlockNote / Label

Function Label

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected