MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / FieldLabel

Function FieldLabel

components/ui/field.tsx:101–116  ·  view source on GitHub ↗
({
  className,
  ...props
}: React.ComponentProps<typeof Label>)

Source from the content-addressed store, hash-verified

99}
100
101function FieldLabel({
102 className,
103 ...props
104}: React.ComponentProps<typeof Label>) {
105 return (
106 <Label
107 data-slot="field-label"
108 className={cn(
109 "has-data-checked:bg-primary/5 has-data-checked:border-primary dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-none has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-2 group/field-label peer/field-label flex w-fit leading-snug",
110 "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
111 className
112 )}
113 {...props}
114 />
115 );
116}
117
118function FieldTitle({ className, ...props }: React.ComponentProps<"div">) {
119 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected