Skip to content

It's like a checkbox, but more like a switch !

Notifications You must be signed in to change notification settings

tt-52101/switchbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Switchbox

It's like a checkbox, but more like a switch !

Switchbox replaces your checkboxes with some pretty switches. As written with Sass, you can easily customize them...

Demo

http://alexjoffroy.github.io/switchbox/demo/

Install

npm install --save switchbox

Usage

CSS

<link rel="stylesheet" href="switchbox.css">
<!-- Or minify -->
<link rel="stylesheet" href="switchbox.min.css">

Sass

// Define variables
$switch-primary-color: blue;
$slider-height: 6px;
// Then import
@import "node_modules/switchbox/src/switchbox";

Development

Clone the repo:

git clone https://github.com/alexjoffroy/switchbox.git

Install dependencies:

cd switchbox && npm install

Commands:

npm run watch     # watches src and build the dist
npm run build 	  # builds the dist

About

It's like a checkbox, but more like a switch !

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 68.3%
  • HTML 31.7%