Argent

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

PropTypeDefaultWhat it does
label requiredstring
defaultValuestring
disabledboolean
errorstringError text. Also marks the field invalid.
hintstringHelp text under the field.
onValueChange(value: string) => void
placeholderstring
requiredboolean
rowsnumber4Visible lines.
valuestring

Accessibility

  • Same labelling as Input.

Do

  • Set `rows` to the length you expect.

Don’t

  • Use it for one-line answers.