Giter Club home page Giter Club logo

toggle-radios's Introduction

Toggle Radios

Pure CSS toggle switchs for form input radio buttons

Preview

Coming soon.

Installation

CSS

<link rel="stylesheet" href="toggle-radios.css">

HTML

<div class="toggle-radio">
	<input type="radio" name="mode" id="mode1" value="mode1">
	<label for="mode1">Mode 1</label>

	<input type="radio" name="mode" id="mode2" value="mode2">
	<label for="mode2">Mode 2</label>

	<input type="radio" name="mode" id="mode3" value="mode3">
	<label for="mode3">Mode 3</label>
</div>

Options

Option Data Attribute
Rounded data-style="rounded"
Square data-style="square"
Disabled add the disabled attribute to the input tag
Checked add the checked attribute to the input tag
Colors data-color="red"
data-color="orange"
data-color="yellow"
data-color="green"
data-color="blue"
data-color="purple"
data-color="gray"

Features

  • CSS only - no JavaScript!
  • No dependencies
  • Fully reponsive
  • Fully customizable
  • Fully self contained
  • 7 color schemes
  • Keyboard Accessible - accessibility (a11y)
  • Focus Styles - accessibility (a11y)
  • Supports all modern browsers
  • Search engine friendly
  • Screen reader friendly
  • Doesn't dump a bunch of global styles that'll screw with your other CSS

See also Toggle Switchy - A pure CSS toggle switch for form input checkboxes

toggle-radios's People

Contributors

adamculpepper avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pinchy76

toggle-radios's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.