0.1.5 • Published 4 years ago

@bdt-component-library/option v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Option 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

Option is a separate component that serves both the Menu and Select component, by acting as the default display option, reducing complexity within those components, and enabled reuse and composability.

API

proptyperequireddefaultexplanation
classNamestringnoundefinedAdds an optional classname to the component
childrenReact nodeyesn/aHandles the display inside an Option element
valuestring OR numberyesn/aDetermines value of the Option, used for selections
disabledbooleannofalseDetermines whether or not the option is disabled
onClickfunction(e: event, val: string)no() => {}Event handler for onclick event for the Option
selectedbooleannofalseDetermines whether or not the element is in a selected state
0.1.5

4 years ago

0.1.4

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