
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
@s-ui/react-molecule-dropdown-list
Advanced tools
`MoleculeDropdownList` is a composition of DropdownOptions
MoleculeDropdownList
is a composition of DropdownOptions
$ npm install @s-ui/react-molecule-dropdown-list --save
import MoleculeDropdownList, {
moleculeDropdownListSizes
} from '@s-ui/react-molecule-dropdown-list'
const countries = [
'Canary Islands',
'Australia',
'Northern Mariana Islands',
'Equatorial Guinea'
]
<MoleculeDropdownList visible={true}>
{countries.map((option, index) => (
<MoleculeDropdownOption
value={option}
key={index}
selected={option === 'Canary Islands'}
>
{option}
</MoleculeDropdownOption>
))}
</MoleculeDropdownList>
<MoleculeDropdownList visible={true} size={moleculeDropdownListSizes.LARGE}>
{countries.map((option, index) => (
<MoleculeDropdownOption
value={option}
key={index}
selected={option === 'Canary Islands'}
>
{option}
</MoleculeDropdownOption>
))}
</MoleculeDropdownList>
checkbox
<MoleculeDropdownList visible={true} checkbox>
{countries.map((option, index) => (
<MoleculeDropdownOption
value={option}
key={index}
selected={option === 'Canary Islands'}
>
{option}
</MoleculeDropdownOption>
))}
</MoleculeDropdownList>
The package also provides an easy handler configuration for single or multiple selection behaviors
import MoleculeDropdownList, { moleculeDropdownListSelectHandler } from '@s-ui/react-molecule-dropdown-list';
// Single
<MoleculeDropdownList
visible={true}
onSelect={moleculeDropdownListSelectHandler.single(
{
value: 'option1',
onSelect: (event, {value, selected}) => console.log({value, selected})
})
}
>
{countries.map((option, index) => (
<MoleculeDropdownOption
value={option}
key={index}
>
{option}
</MoleculeDropdownOption>
))}
</MoleculeDropdownList>
// Multiple
<MoleculeDropdownList
visible={true}
onSelect={moleculeDropdownListSelectHandler.multiple(
{
value: ['option1', 'option2'],
onSelect: (event, {value, selected}) => console.log({value, selected})
})
}
>
{countries.map((option, index) => (
<MoleculeDropdownOption
value={option}
key={index}
>
{option}
</MoleculeDropdownOption>
))}
</MoleculeDropdownList>
Find full description and more examples in the demo page.
FAQs
`MoleculeDropdownList` is a composition of DropdownOptions
The npm package @s-ui/react-molecule-dropdown-list receives a total of 8,590 weekly downloads. As such, @s-ui/react-molecule-dropdown-list popularity was classified as popular.
We found that @s-ui/react-molecule-dropdown-list demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.