TextField
Forms
Overview
A text field associated with a label, optional hint, a 2px input edge, radius and the focus-halo on focus.
Live example
Usage
- Always a visible
label. Mark a required field withrequired; the asterisk isdestructiveand hidden from assistive technology because therequiredattribute is already set on the input. hintanderrorare linked througharia-describedby. Explain the fix in the error: "Enter an email address, such as name@example.com.", not "Invalid".- An invalid field turns its edge
destructiveand setsaria-invalid. The error text should be always visible until the user addresses it. - Minimum height 44px. The edge is
input, at least 3:1 againstbackground.
Accessibility
This section is still in progress.
Related
References
This section is still in progress.