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.

installyarn add @adobe/react-spectrum
added3.0.0
usageimport {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" />