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

Function FieldLabel

packages/react/src/components/field.tsx:104–117  ·  view source on GitHub ↗
({ className, ...props }: React.ComponentProps<typeof Label>)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected