Skip to content

Bavaria

Toggle Switch

On/off control built on a native checkbox, with a sliding knob, for settings that apply at once.

Live, interactive React component · light themeResponsive

About the Bavaria Toggle Switch

On/off toggle: a native checkbox with role="switch", drawn as a round track that fills with the accent while the knob slides over on a soft spring. Use it for settings that apply at once; use Checkbox inside forms that submit.

It is part of Bavaria: chalk pages, architectural photos, sage and forest green. The style’s 93 pieces share one set of tokens, type and motion, in a light and a dark theme, so whatever you take from it fits together.

To put it in your project, copy the prompt into Claude Code, OpenAI Codex or Cursor, or add it by hand. The documentation walks through both.

The same piece, drawn for a different look. Open one to compare it live.

Aeris Toggle Switch

On/off control built on a native checkbox, with a sliding knob, for settings that apply at once.

Form & Field Toggle Switch

On/off control built on a native checkbox, with a sliding knob, for settings that apply at once.

Glass Meridian Toggle Switch

On/off control built on a native checkbox, with a sliding knob, for settings that apply at once.

Grove Toggle Switch

On/off control built on a native checkbox, with a sliding knob, for settings that apply at once.

Neo-Brutal Toggle Switch

On/off control built on a native checkbox, with a sliding knob, for settings that apply at once.

Noir Aurora Toggle Switch

On/off control built on a native checkbox, with a sliding knob, for settings that apply at once.

Soft Bento Toggle Switch

On/off control built on a native checkbox, with a sliding knob, for settings that apply at once.

Swiss Tech Mono Toggle Switch

On/off control built on a native checkbox, with a sliding knob, for settings that apply at once.