FormField
Basic Usage
FormField accepts any input, either to the input
prop or
children
, accessibly connecting the label to it.
<DemoLayout> {/* Use the "input" prop for a streamlined approach. */} <FormField input={TextInput} label="Name" /> {/* Or use "children", if you prefer. */} <FormField label="Description"> <TextArea /> </FormField> </DemoLayout>