Cursor

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-cursor

About this component

A glowing gray pill indicator slides smoothly between selected options via translateY, acting like a cursor homing in on the active choice. Labels brighten on select; the pill springs with a cubic-bezier overshoot.

Triggers

  • Click
  • State change
  • Spring

Techniques

  • Transform only

Difficulty

Beginner

Moves on

Its code uses this curve. Open one to see it plotted and tune it.

Accessibility

Keyboard and screen readers

Hidden native <input type="radio"> per option with shared name. Keyboard-navigable.

Reduced motion

Pill slide transition skipped under prefers-reduced-motion.

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

More radios

See all
GravityGet code
HologramGet code