Grab the code for this component with free account
Every free component's full source, ready to copy or download, plus 30 monthly AI credits for Atheros AI routing to make it yours.
Switch component
A toggle switch whose sliding thumb cross-fades a check icon when on and an x icon when off, with `role="switch"` semantics and full keyboard support — fully design-system agnostic.
transform: translateX for GPU-friendly motionopacity as the thumb movesrole="switch" semantics with aria-checked synced on every changearia-liveprefers-reduced-motion<button> with role="switch" and aria-checkedaria-hidden="true"aria-live="polite" announces Enabled/Disabled changes:focus-visible with --ring outline on all interactive elementsprefers-reduced-motion: reduce disables all animationsOpen Switch Icon in Atheros AI Builder, pick a design system and ask the AI assistant to change the layout, copy or behaviour — the switch is regenerated against your tokens. Take the HTML, CSS, JS and React source with you, or pull it into your repo from Claude Code, Cursor or Codex over MCP.

A split-flap departure-board settings panel — every labeled switch is a solari cell whose ON and OFF characters drop into place with a flap animation while a machined blank plate slides across on a spring, with `role="switch"` semantics, a live status strip, and full keyboard support.

An elegant, precision-engineered settings panel with sweep-fill switches, spring-glide thumbs, live status, native button behavior, and contrast-safe design-system adaptation in light and dark themes.

A levitating theme toggle that bobs above its own shadow and has to land to change: the disc drops onto the shadow, swaps its glyph at impact, and springs back up already changed.

Celestial theme switcher — a porthole onto the sky: the night rises through it as a hard horizon, the sun sets below it and the moon rises out of it with the stars.

An eclipse orb: the disc is the celestial body itself — a night face slides across the sun with a hard terminator while night spreads over the page outward from the orb.

A terminal-styled theme switch with monospace status copy and persisted light and dark modes.
300+ production-ready components and Atheros AI models. Every paid plan includes access to the whole Atheros — AI Builder and Learning.
Starting at $9.9 per month, billed annually
