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