Aura

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/toggle-aura

About this component

An assistant switch whose thumb is a living orb of colour: off it is a still grey pearl; on, it rolls across, its colours wake and swirl, it breathes, and its aura spills back along the track behind it.

Triggers

  • Click
  • State change
  • Glow
  • Gradient
  • Ambient

Techniques

  • Filter
  • Keyframes
  • mix-blend-mode
  • CSS transition

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native checkbox with role="switch" inside a <label>, named by aria-label ("Assistant"); the track and orb are aria-hidden, and :focus-visible on the input outlines the track.

Reduced motion

The orb jumps and its colours stay still.

Use it in anything you build, commercial and client work included. Licence

More toggles

See all
BeadGet code
CoilGet code
DelftGet code
FrostedGet code