@cmds/select

0.7.0 • Public • Published

Select

npm package

Used for selecting one option from a list of options.

Getting started

npm install @cmds/select --save

Prop Types

Property Type Required? Description
clearable Boolean Whether the user can clear the selected option
noOptionsRenderer Function Responsible for the empty state for the option list
optionRenderer Function Responsible for rendering a custom version of the option ({option: object, inList: boolean}): jsx
alignLeft Boolean Whether the dropdown should align left
value String Selected option
options Boolean List of options to choose from.
onChange Function Triggers when the selection value changes: ({id: string, value: string})

More information

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

/@cmds/select/

    Package Sidebar

    Install

    npm i @cmds/select

    Weekly Downloads

    0

    Version

    0.7.0

    License

    MIT

    Unpacked Size

    47.3 kB

    Total Files

    15

    Last publish

    Collaborators

    • entercosmos