1.1.1 • Published 4 years ago
nj-select v1.1.1
NJ Select
Native JS custom select.
Demo
It's on the GitHub Pages.
Install
npm
$ npm i nj-select
yarn
$ yarn add nj-select
Manual 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'));