Forms
Visit the Form Styleguide page to see all the available elements.
Form validation
You can add validation to any form by using the data-validate="" attribute.
<form data-validate=""></form>
Required validation
Add aria-required="true" and data-error="" to the input to set the field as required.
Don't forget to add data-required="true" to the label to indicate a required field to the user.
Email validation
To validate if an email address is valid use data-pattern="email"
Custom validation
You can use a custom regex pattern to validate the field.
Errors
You can display a general error above the form content. An example would be displaying an error message received from the server.
Example
Inline Form
Inline forms are one exception to the rule of always using a label with an input . In this case use a combination of aria-label and placeholder to inform users.
Inline form with icon
Inline detached form
Use the class big to enlargen the form.