npm.io
0.10.7 • Published 2 years ago

@govuk-react/text-area

Licence
MIT
Version
0.10.7
Deps
6
Size
16 kB
Vulns
0
Weekly
0

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.

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[]