@govuk-react-bjss-pttg/select
v0.10.7
Published
Styled select menu, taking its options as children and with various configurable parameters via props.
Downloads
1
Keywords
Readme
Select
Import
import Select from '@govuk-react-bjss-pttg/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.
- https://govuk-react.github.io/govuk-react/?path=/docs/select
- https://design-system.service.gov.uk/components/select/
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[] |