@govuk-react/text-area
v0.10.7
Published
Styled textarea supporting additional parameters via props.
Downloads
23,987
Keywords
Readme
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[] |