a minimal dropdown with UX details
$ component-install stagas/dropdown
All the events & methods of Menu.
select
when an item is selected
var input = document.getElementById('input')
var dropdown = Dropdown(input)
dropdown
.add('One')
.add('Two')
.add('Three')
dropdown.on('select', function (item) {
// do something with item
})
MIT