@s-ui/react-molecule-dropdown-option
v2.12.0
Published
`MoleculeDropdownOption` is a component that wraps a composition of checkbox + text.
Downloads
39,770
Maintainers
Keywords
Readme
MoleculeDropdownOption
MoleculeDropdownOption
is a component that wraps a composition of checkbox + text.
Installation
$ npm install @s-ui/react-molecule-dropdown-option --save
Usage
Basic usage
import MoleculeDropdownOption from '@s-ui/react-molecule-dropdown-option'
return (
<MoleculeDropdownOption value="option1">
Option 1
</MoleculeDropdownOption>
)
With checkbox
import MoleculeDropdownOption from '@s-ui/react-molecule-dropdown-option'
return (
<MoleculeDropdownOption value="option1" checkbox>
Option 1
</MoleculeDropdownOption>
)
With disabled
import MoleculeDropdownOption from '@s-ui/react-molecule-dropdown-option'
return (
<MoleculeDropdownOption value="option1" disabled>
Option 1
</MoleculeDropdownOption>
)
Find full description and more examples in the demo page.