MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / FormItem

Function FormItem

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

Source from the content-addressed store, hash-verified

80);
81
82function FormItem({ className, ...props }: React.ComponentProps<"div">) {
83 const id = React.useId();
84
85 return (
86 <FormItemContext.Provider value={{ id }}>
87 <div
88 data-slot='form-item'
89 className={cn("grid gap-2", className)}
90 {...props}
91 />
92 </FormItemContext.Provider>
93 );
94}
95
96function FormLabel({
97 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected