npm.io
0.10.7 • Published 2 years ago

@govuk-react/select

Licence
MIT
Version
0.10.7
Deps
7
Size
17 kB
Vulns
0
Weekly
0

Select

Import

  import Select from '@govuk-react/select';

The select component should only be used as a last resort in public-facing services because research shows that some users find selects very difficult to use.

Properties

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