npm.io
0.10.7 • Published 2 years ago

@govuk-react/input-field

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

InputField

Import

  import InputField from '@govuk-react/input-field';

Use the text input component when you need to let users enter text that’s no longer than a single line, such as their name or phone number.

Properties

Prop Required Default Type Description
error boolean Apply error state styling to the component
hint undefined ReactNode
input {} InputProps
margin Margin | Margin[]
mb string | number
meta {} { error?: string | string[]; touched?: boolean; }
padding Padding | Padding[]