Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
New component: Switch. #1414
Switches can be used instead of regular radio buttons, to switch between two or more options. They are very customizable and use styles from other components such as buttons or panels.
The switches are CSS-only, and only show-up only modern browsers. Browsers without support for media queries get standard form elements.
The class names used are similar to the ones used by F4 classes for grids (
pushed a commit
this pull request
Feb 1, 2013
@ghinda, this was awesome! I was going to wait to pull it in, but couldn't resist. Very smartly written my friend. I may end up tweaking styles a bit or adding default styles incase you don't attach