Function
FormItem
({ className, ...props }: React.ComponentProps<"div">)
Source from the content-addressed store, hash-verified
| 74 | ) |
| 75 | |
| 76 | function 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 | |
| 90 | function FormLabel({ |
| 91 | className, |
Callers
nothing calls this directly
Tested by
no test coverage detected