seed-switch
Switch component pack for Seed!
Install
npm install seed-switch --save
Documentation
Check out our documentation of this pack.
Basic Usage
SCSS
This seed pack needs to be imported into your sass pipeline. Below is an example using Gulp:
var gulp = ;var sass = ;var pack = ; gulp;
Once that is setup, simply @import
seed-switch as needed in your .scss
file:
// Packs
Usage
Options
The following variables can be found in _config.scss
Switch configs
// Namespaces ;;; // Configs // "switch" or "switch-toggle" ;
Switch toggle configs
// Namespaces ; // Animations ; // Colors and typography ;;;;;;; // Sizing and offsets ;;;;; // Modifier sizes ;; ;;
Switch handle configs
// Namespaces ;;; // Transitions ; // Background and shadow ;;; // Offsets and sizing ;;; // Modifier sizes ;;