kevinfrom / tiny-select

A lightweight custom select that you can style how you like.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tiny select

A lightweight custom select that you can style how you like.

Try out the demo!

Requirements

  • jQuery
  • sass (only if you intend on including the provided base styles found in src/sass/tiny-select.scss)

Installation

<!-- Load tiny-select (required) -->
<script src="tiny-select.min.js"></script>

<!-- Load tiny-select css (optional) -->
<link rel="stylesheet" href="tiny-select.min.css">

Example usage

// Initialize
$('select').tinySelect();

Methods

Method Description Example
open Opens a tiny select $('.tiny-select').tinySelect('open');
close Closes a tiny select $('.tiny-select').tinySelect('close');

About

A lightweight custom select that you can style how you like.

License:ISC License


Languages

Language:JavaScript 74.0%Language:SCSS 26.0%