Formcontrol
FormControl provides context such as filled/focused/error/required for form inputs. It's a fundamental building block for creating consistent form layouts.
Basic Usage
The most common use case for FormControl is wrapping form inputs with labels.
Full Width
Use the fullWidth prop to make the FormControl take the full width of its container.
Required Fields
Add the required prop to indicate that a field must be filled.
Error State
Use the error prop to indicate validation errors.
Disabled State
The disabled prop prevents user interaction with the form control.
Size Variants
FormControl supports small and medium sizes.