a vanilla javascript dropdown box replacement without required external stylesheet
npm install falldownFeatures include single or multiple drop-down box. Fully control styling using classes or intialization options in javascript. Create the drop-down box using only javascript or only markup. Events system to capture when the box changes.
js
import { FallDown } from 'falldown'const falldown = new FallDown({
parent: document.body,
label: 'Choose a color:',
options: [
'black',
'blue',
'green',
'purple',
'yellow'
],
addCSS: true,
selected: 'black'
})
falldown.on('select', value => console.log(value))
`Live Example
https://davidfig.github.io/falldown/API Documentation
https://davidfig.github.io/falldown/jsdoc/Installation
`
npm i falldown
``