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.

PropTypeDefaultDescription
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 booleanfalseGrow the field to fit its content instead of scrolling.
/docs/textarea Truss UI · MIT