Forms
Forms are a group of inputs and buttons inside a <form> tag.
The requirement of the tag allows for accessibility usage where users can tab and enter throughout the form to complete it.
Type | Emotive Title bottom margin: 48px Input-margin: 36px Margin with label: 16px |
Productive Title bottom margin: 48px Input-margin: 32px Margin with label: 14px |
---|---|---|
Two button form | ||
Single button form | ||
No buttons or title | ||
Form as part of a wizard |
Usage
Forms are used for users to submit data, it is important to keep it short and simple to avoid user frustration.
Formatting
Labels are used to inform users what the corresponding input fields mean.
Input fields enable users to provide information and enter information that can be entered in a variety of ways such as text fields, checkboxes, radios and many more.
Helper text provides assistance on how to fill out the field, this is optional. For example password must be of 8 characters
.
Paceholder text hints what goes into the field, this is also optional.
Actions allows user to submit a form - these are buttons or button groups
Validation ensures that data is submitted correctly.