Textarea
A textarea is where I provide a long answer to a question in an online form.
The Textarea component is used when longer form content needs to be entered into an online form.
Details
- Extends: USWDS Text input component
- Honeycrisp: Form element atom
- Customization: Styles
- Modifier:
.cfa-textarea
The Textarea extends the USWDS Text input component. Further customization is applied using the CSS modifier(s) .cfa-textarea
to add styles defined in a custom stylesheet.
Modifier. A modifier is a class name that applies a variant, type, or extended style customization to modify the component's visual appearance.
Examples
Guidance
Form groups. Form questions with textarea components always use the form group component to wrap the textarea with a visible label
element.
Refer to additional guidance on the USWDS documentation site.
USWDS documentation siteAdditional references
Accessibility
Refer to additional accessibility guidance on the USWDS documentation site.
Checklist Key
Design library component
Source and usage
- Sass stylesheet:
./_cfa-textarea.scss
- Thymeleaf template fragment:
./cfa-textarea.th.html
- Embedded Ruby (ERB) partial template:
./_cfa-textarea.html.erb