MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / FieldGroup

Function FieldGroup

src/components/ui/field.tsx:44–55  ·  view source on GitHub ↗
({ className, ...props }: React.ComponentProps<"div">)

Source from the content-addressed store, hash-verified

42}
43
44function FieldGroup({ className, ...props }: React.ComponentProps<"div">) {
45 return (
46 <div
47 data-slot="field-group"
48 className={cn(
49 "group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",
50 className
51 )}
52 {...props}
53 />
54 )
55}
56
57const fieldVariants = cva(
58 "group/field flex w-full gap-3 data-[invalid=true]:text-destructive",

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected