@govuk-react/text-area

Styled textarea supporting additional parameters via props.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@govuk-react/text-area
Minified + gzip package size for @govuk-react/text-area in KB

Readme

TextArea

Import

  import TextArea from '@govuk-react/text-area';

Usage

Simple

import { TextArea } from 'govuk-react'

<TextArea name="group1">Description of what you saw</TextArea>

TextArea with hint text

<TextArea name="group1" hint={['Enter as many words as you like']}>
  Description of what you saw
</TextArea>

TextArea with hint text & error

const meta = {
  touched: true,
  error: 'Example',
};

<TextArea
   name="group1"
   hint={['Enter as many words as you like']}
   meta={meta}
 >
   Description of what you saw
 </TextArea>

References:

Properties

Prop Required Default Type Description
children true `````` node
hint undefined string
input {} shape[object Object]
meta {} shape[object Object]

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.