
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
react-dropdown-button
Advanced tools
A carefully crafted drop-down button for React
$ npm install react-dropdown-button --save
The drop-down button uses two other React components:
See Changelog
var DDButton = require('react-dropdown-button')
var saveItems = [
{
label: 'PDF'
},
'-', // a separator
{
label: '.DOCX'
},
{
label: 'ODF',
onClick: function(){
console.log('save as ODF')
}
}
]
function onClick(event, itemProps){
console.log('You clicked: ' + itemProps.data.label +
' at index ' + itemProps.index)
}
<DDButton items={saveItems} onChildClick={onClick}>
Save as
</DDButton>
Also see zippyui/react-button
You have the same props as for the react-button, so see docs.
Besides the button specific props, you can specify the items
prop as an array of objects to be passed to the menu component.
menuProps
, you can directly pass in a menu instance$ npm install
$ npm run dev # to start webpack-dev-server
$ npm run serve # to start http-server on port 9091
now navigate to localhost:9091
FAQs
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
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.