@govuk-react-bjss-pttg/text-area
v0.10.7
Published
Styled textarea supporting additional parameters via props.
Keywords
Readme
TextArea
Import
import TextArea from '@govuk-react-bjss-pttg/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[] |
