html-selector
Install
You can get it on npm.
$ npm install @guillaumeferber/html-selector --save
Usage
Standalone
JavaScript
Add the script tag before the closing <body>
tag
<script src="node_modules/@guillaumeferber/html-selector/dist/html-selector.min.js"></script>
CSS/SCSS
- Add the link CSS tag in
<head>
<link rel="stylesheet" type="text/css" href="node_modules/@guillaumeferber/html-selector/dist/css/html-selector.min.css"/>
- or you can import the Sass file to your Sass project
@import "node_modules/@guillaumeferber/html-selector/scss/html-selector.default";
HTML Usage
Just add the js-select
class name to the select element you want to customize.
<select class="js-select">
<option>Select</option>
<option value="value_1">option #1</option>
<option value="value_2">option #2</option>
<option value="value_3">option #3</option>
</select>
License
MIT License © Guillaume Ferber