Glide

Range
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-glide

About this component

A glass segmented choice of Day, Week and Month: a tinted glass pill glides to the one you pick, stretching as it travels and settling with a small bounce.

Triggers

  • Click
  • State change
  • Spring

Techniques

  • Keyframes
  • CSS transition
  • CSS variables

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Range"), each in a <label>; arrow keys move between them as usual and :focus-visible outlines the option.

Reduced motion

The transitions and loops stop and the component jumps straight to its final state.

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

More radios

See all
Size
MagnifyGet code
Input mode
OrbsGet code
Delivery
RaiseGet code
Plan
TierGet code