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

https://github.com/xi/select

Better select widgets in vanilla javascript.
https://github.com/xi/select

select2

Last synced: 4 months ago
JSON representation

Better select widgets in vanilla javascript.

Awesome Lists containing this project

README

        

# Select

Better select widgets in vanilla javascript.

The code is intentionally very simple and close to browser defaults.

## Usage

```html

new Select(element, {
id: 'myselect',
inputClass: 'my-input-class',
valueClass: 'my-value-class',
});

```

# Mobile support

This library does work on mobile. However, select usability on mobile is
usually far superior to that on desktop. Therefore it is recommended to only
use this on desktop.

## Roadmap

- allowClear

## Inspiration

- [select2](https://select2.org/)
- [downshift](https://www.downshift-js.com/)
- [react-select](https://react-select.com)
- [WAI-ARIA combobox](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/)
- [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist)