nj-select
v1.1.1
Published
Native JS custom select
Readme
NJ Select
Native JS custom select.
Demo
It's on the GitHub Pages.
Install
npm
$ npm i nj-selectyarn
$ yarn add nj-selectManual download
You can manually download NJ Select from repository.
How to use
Add select:
<select id="nj">
...
</select>Use styles:
<link rel="stylesheet" href="dist/nj-select.css">Import via ES modules:
import NJSelect from 'nj-select';Or in browser:
<script src="dist/nj-select.js"></script>To initialise:
new NJSelect(document.getElementById('nj'));