0.11.0 • Published 4 years ago

@pndr/select v0.11.0

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

Select

npm package

Used for selecting one option from a list of options.

Getting started

npm install @cmds/select --save

Prop Types

PropertyTypeRequired?Description
clearableBooleanWhether the user can clear the selected option
noOptionsRendererFunctionResponsible for the empty state for the option list
optionRendererFunctionResponsible for rendering a custom version of the option ({option: object, inList: boolean}): jsx
alignLeftBooleanWhether the dropdown should align left
valueStringSelected option
optionsBooleanList of options to choose from.
onChangeFunctionTriggers when the selection value changes: ({id: string, value: string})

More information

This component is designed and developed as part of Cosmos Design System.