Toggle Button Generator

Automatically generates code for a toggle button.
You can select either a JS-free checkbox format or a button tag format using JS.
Both formats are implemented so that the Tab key can be used to focus.
The output codes can be easily used by copy and paste.

Sponsored Links

Customization

▼ HTML Tag Format

▼ Default Value

Track Design

▼ Size

px
px

px

px

px

Thumb Design

▼ Size

px
px

px

px

<label class="toggleButton">
  <input type="checkbox" class="toggleButton__checkbox" />
</label>

Notes

  • It is intended for use with modern browsers and may contain CSS properties that are not supported by IE or older versions of browsers.
  • The reset CSS of this site is based on “modern-normalize.css”. Depending on the reset CSS and other stylesheets loaded in your project, there may be differences from the preview appearance.

\ Share on SNS /

Sponsored Links

Tools

CSS Generators

UI Parts Generators

HTML Converters

Image Generators