Textarea
Several lines of text.
We reply within a day.
import { Textarea } from '@rajatweb/argent'
<Textarea label="Message" rows={5} hint="We reply within a day." />Props
| Prop | Type | Default | What it does |
|---|---|---|---|
label required | string | ||
defaultValue | string | ||
disabled | boolean | ||
error | string | Error text. Also marks the field invalid. | |
hint | string | Help text under the field. | |
onValueChange | (value: string) => void | ||
placeholder | string | ||
required | boolean | ||
rows | number | 4 | Visible lines. |
value | string |
Accessibility
- Same labelling as Input.
Do
- Set `rows` to the length you expect.
Don’t
- Use it for one-line answers.