Inputs
Textarea
Give users room to enter and review multiple lines of text.
Anatomy
- Field label
- Multiline input
- Character count
Configuration
Textarea states
Hover over an enabled control or use Tab to see its hover and focus styles.
0 / 120 characters
58 / 120 characters
32 / 120 characters
124 / 120 characters
Shorten the notes to 120 characters or fewer.
Design tokens used
| Category | Token | Value | Where it’s used |
|---|---|---|---|
| Colour | --cc-foreground | — | Field label |
--cc-muted-foreground | — | Character counts and disabled value | |
--cc-subtle-foreground | — | Placeholder text | |
--cc-surface-muted | — | Disabled textarea background | |
--cc-primary | — | Editable field border on focus | |
--cc-critical-soft-foreground | — | Validation message | |
--cc-critical-border | — | Invalid field border | |
--cc-field-background | — | Editable field background | |
--cc-field-foreground | — | Entered value | |
--cc-field-border | — | Field border | |
--cc-field-hover-border | — | Editable field border on hover | |
--cc-focus-ring | — | Keyboard focus ring |