Skip to main content

Variable: FormControl

@arolariu/components


@arolariu/components / FormControl

Variable: FormControl

const FormControl: ForwardRefExoticComponent<FormControlProps & RefAttributes<HTMLElement>>

Defined in: components/ui/form.tsx:262

Provides react-hook-form field metadata to a single control element.

Remarks

This replaces the former Radix Slot-based implementation by cloning the direct child element and merging the accessibility attributes required by the surrounding form primitives. A fallback wrapper is rendered only when the child is not a valid React element.

// was this page useful?