Y2K

Source
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-y2k

About this component

Source buttons as three bubbly chrome pills with a glass lens each. The pill you pick presses in, its lens lights up aqua and an iridescent sheen keeps sliding across the metal.

Triggers

  • Click
  • State change
  • Glow
  • Loop

Techniques

  • Gradient
  • Radial gradient
  • Keyframes
  • Pseudo elements

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Source"), each inside a <label> and named by its visible text; the lens is aria-hidden. The focused pill is outlined.

Reduced motion

The sheen stops and the transitions are switched off.

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

More radios

See all
Glaze
ZelligeGet code
ElementsGet code
HomingGet code
Range
GlideGet code