Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
react-multi-level-selector
Advanced tools
:bell: React component for Multi level options Selector for your application.
Install it from npm and import it in your root component
npm install --save react-multi-level-selector
import React from 'react';
import MultiLevelSelect from 'react-multi-level-selector';
const options = [
{ value: 'fruits', label: 'Fruits',
options: [
{ value: 'citrus', label: 'Citrus',
options: [
{ value: 'orange', label: 'Orange' },
{ value: 'grapefruits', label: 'GrapeFruits'},
],
},
{ value: 'tropical', label: 'Tropical',
options: [
{ value: 'mango', label: 'Mango' },
{ value: 'papaya', label: 'Papaya' },
],
},
{ value: 'berries', label: 'Berries',
options: [
{ value: 'strawberry', label: 'Strawberry' },
{ value: 'raspberries', label: 'Raspberries' },
],
},
],
},
{ value: 'city', label: 'City',
options: [
{ value: 'dublin', label: 'Dublin' },
{ value: 'new york', label: 'New York' },
{ value: 'san fransis', label: 'San Fransis' },
],
},
function App() {
return (
<div>
<MultiLevelSelect
options={options}
/>
<div>This is a test application</div>
</div>
)
}
export default App;
Name | Type | Description |
---|---|---|
options | {Array} | Options for the dropdown. Specify the options for users to select from. |
placeholder | {String} | The text displayed when no option is selected. |
onChange | {function} | Subscribe to change events. |
className | {String} | className to style the selector |
FAQs
Multi level dropdown options selector for application
We found that react-multi-level-selector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.