TextArea
Import
import TextArea from '@govuk-react/text-area';
Use the textarea component when you need to let users enter an amount of text that’s longer than a single line.
- https://govuk-react.github.io/govuk-react/?path=/docs/text-area
- https://design-system.service.gov.uk/components/textarea/
Properties
Prop | Required | Default | Type | Description |
---|---|---|---|---|
error |
boolean | Apply error state styling to the component | ||
hint |
undefined |
ReactNode | ||
input |
{} |
TextareaHTMLAttributes | ||
margin |
Margin | Margin[] | |||
mb |
string | number | |||
meta |
{} |
{ error?: string | string[]; touched?: boolean; } | ||
padding |
Padding | Padding[] |