0.13.0 • Published 3 years ago

@bdt-component-library/select v0.13.0

Weekly downloads
49
License
MIT
Repository
github
Last release
3 years ago

Select Component

About

This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.

Description

Handles display of select fields according to style guide conventions.

This component is intended to be used with the Option component for display of options, but it will accept any valid react elements as children.

API

proptyperequireddefaultexplanation
classNamestringno""Adds an optional classname to the component
childrenReact elementReact element[]yesn/aHandles the Select option contents
compactbooleannonofalseUses reduced height for Select field (useful in other components like Pagination)
labelstringyesnoText for input label
idstringyesnoInput id attr
selectedstringno""Selected option name
disabledbooleannoundefinedDetermines input disabled state
requiredbooleannofalseDetermines input required state
multiSelectbooleannofalseDetermines if the input is multiselect (not implemented currently)
placeholderstringno""Adds placeholder for the input
noBottomMarginbooleannofalseDetermines whether or not there is a bottom margin around selects
helperTextstringnoundefinedAdds optional helper text to input
readOnlybooleannofalseProperty that prevents the user from entering text in the input
hasSuccessbooleannofalseDetermines success state
hasErrorbooleannofalseDetermines error state
0.13.0

3 years ago

0.12.0

4 years ago

0.11.0

4 years ago

0.10.2

4 years ago

0.10.3

4 years ago

0.10.1

4 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.6

4 years ago

0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago