Provide a detailed description of your project goals and requirements.
Options
Width

By default, a textarea will the width of a line of 30 characters.
You can change this to be any number of characters, or render the textarea to fill the width of its parent element.
Height

By default, a textarea will the height of 7 lines of text.
You can change this to be any number of lines. Consider the length of the expected value to set a height.
If the height of the content exceeds the height of textarea, users can scroll the content or resize the textarea.
Resizing
By default, a textarea can be resized vertically and horizontally.
You can limit a user''s resizing options to:
- no resizing
- only resize vertically
- only resize horizontally
Accessibility
Important Accessibility Guidelines:
- Textareas must be labeled. The label may be visually hidden, but visible labels are preferred.
- Placeholder text is never an acceptable substitute for a label because:
- The placeholder text disappears as soon as the input has a value
- Placeholder text colors are typically too light to meet the minimum color contrast ratio required for accessibility
- Screen readers do not read placeholder text as a label
This textarea has a visually hidden label but is still accessible to screen readers.
This textarea has both a visible label and placeholder text for enhanced usability.
Related Links
Feedback
Help us improve this component by providing feedback, asking questions on Slack, or updating this file on GitHub.