v1.0.11

Text Area

Installation

Install yarn add @spark-web/text-area
Source GitHub.com
Bundle unpkg.com

Allows the user to input plain text spanning multiple lines.

Usage

Field

Each text area input must be accompanied by a Field with a label. Effective form labeling helps inform users the context and information required of the text area.

Examples

Controlled

Uncontrolled

Disabled

Message and tone

The message is used to communicate the status of a field, such as an error message. This will be announced on focus and can be combined with a tone to illustrate intent. The supported tones are: critical, positive and neutral.

Critical message
Positive message
Neutral message

Props

PropTypeDescription

data?

DataAttributeMap

Sets data attributes for the element.

© 2023 Brighte Capital Pty Ltd