← All products

Component

Spirit Level Switch

A toggle switch that is a builder's spirit level: flip it and the level tilts, the air bubble glides to the high end and the liquid lights up.

Every toggle has a knob that slides. This one has an air bubble in a glass vial of liquid. Flip the switch and the aluminium level tips the other way; the bubble is pushed along by real physics, stretches as it picks up speed, blinks the centre marks as it passes level, squashes against the end of the glass and settles while the liquid glows on. Click again mid-glide and it simply turns round, because the motion is a simulation rather than a canned animation.

Use it for settings pages, feature flags, admin panels, pricing toggles, or anywhere a plain switch feels flat. It is plain HTML, CSS and JavaScript with no dependencies. Each switch is a real button with role="switch" and aria-checked, so it works with Tab, Space and Enter and reads correctly in screen readers. It only writes transform and opacity, runs its animation loop only while something is moving, comes in two sizes, and drops the swinging for a calm fade under prefers-reduced-motion. Colours, tilt, gravity, drag and bounce are all set in one place.