Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 785 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 785 Bytes

Custom Select

SCSS custom select; a CSS-only solution

Screenshot

Install

npm i --save custom-select-scss

Include

Depending on your current directory and frontend stack, you'll want something along the lines of one of:

@import 'custom-select-scss';

Integrate

<p>
  <label>Select</label>
  <span class="select">
    <select>
      <option>Lorem</option>
      <option>Ipsum</option>
    </select>
  </span>
</p>

Interpolate

Written in a non-invasive kinda way, so you can add your own styles to select {}, similar to your inputs as per usual, and override the handful of default values set in the sass file.