@guillaumeferber/html-selector

1.1.6 • Public • Published

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

  1. 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"/>
  1. 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

Package Sidebar

Install

npm i @guillaumeferber/html-selector

Weekly Downloads

0

Version

1.1.6

License

MIT

Unpacked Size

24 kB

Total Files

13

Last publish

Collaborators

  • guillaumeferber