@govuk-react/select
TypeScript icon, indicating that this package has built-in type declarations

0.10.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @govuk-react/select

Weekly Downloads

3,064

Version

0.10.6

License

MIT

Unpacked Size

18.4 kB

Total Files

12

Last publish

Collaborators

  • loque-
  • steve_sims
  • petelockey
  • penx
  • marksy