Components / Text & numbers
Textarea
A multi-line field that can auto-grow with its content.
@ruckc/truss-ui Text & numbers
Import
import { Textarea } from '@ruckc/truss-ui'; Playground
rows
value
API
Also accepts every attribute of HTMLTextareaAttributes, applied to the underlying element.
| Prop | Type | Default | Description |
|---|---|---|---|
value bindable | string | '' | The current value. Bind it with `bind:value`. |
label | string | — | Visible label shown above the control. |
hint | string | — | Helper text shown below the control. |
error | string | — | Error message. Marks the control invalid, replaces the hint, and is announced to assistive technology. |
autosize | boolean | false | Grow the field to fit its content instead of scrolling. |