Skip to content

Soft Bento

Switch

On/off toggle: a native checkbox with role="switch"; the knob slides on a spring and stretches while pressed.

Live, interactive React component · light themeResponsive

About the Soft Bento Switch

On/off toggle: a native checkbox with role="switch"; the knob slides on a spring and stretches while pressed. Use it for settings that apply at once; use Checkbox inside forms that submit.

It is part of Soft Bento. The style’s 92 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 the file and its styles by hand. The documentation walks through both.

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

Neo-Brutal Switch

On/off toggle: a native checkbox with role="switch".

Noir Aurora Switch

On/off toggle: a native checkbox with role="switch"; on, the track turns aurora green and the white knob springs across.

Swiss Tech Mono Switch

On/off toggle: a native checkbox with role="switch".