Spectrum 2 is now available! Check out the S2 Form docs and the migration docs.
Form
Forms allow users to enter data that can be submitted while providing alignment and styling for form fields.
| install | yarn add @adobe/react-spectrum |
|---|---|
| added | 3.0.0 |
| usage | import {Form} from '@adobe/react-spectrum' |
Example#
<Form maxWidth="size-3600">
<TextField label="Email" />
<TextField label="Password" />
<Checkbox>Remember me</Checkbox>
</Form>
<Form maxWidth="size-3600">
<TextField label="Email" />
<TextField label="Password" />