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

Function FormItem

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

Source from the content-addressed store, hash-verified

74)
75
76function FormItem({ className, ...props }: React.ComponentProps<"div">) {
77 const id = React.useId()
78
79 return (
80 <FormItemContext.Provider value={{ id }}>
81 <div
82 data-slot="form-item"
83 className={cn("grid gap-2", className)}
84 {...props}
85 />
86 </FormItemContext.Provider>
87 )
88}
89
90function FormLabel({
91 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected