MCPcopy Create free account
hub / github.com/R44VC0RP/opencode.cafe / Label

Function Label

components/ui/label.tsx:8–23  ·  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 items-center gap-2 text-sm font-medium leading-none text-[var(--color-text-weak)] select-none",
17 "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