Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stagas/dropdown

a minimal dropdown with UX details
https://github.com/stagas/dropdown

Last synced: 13 days ago
JSON representation

a minimal dropdown with UX details

Awesome Lists containing this project

README

        

# dropdown

a minimal dropdown with UX details

## Installing

```sh
$ component-install stagas/dropdown
```

## Usage

All the events & methods of [Menu](https://github.com/stagas/menu).

## Events

- `select` when an item is selected

## Example

```js
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
})
```

## License

MIT