Soft

Fan mode
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-soft

About this component

Soft-UI radios: three knobs raised out of one matte plate. The one you pick sinks into a dish, and a small violet lamp comes on at the bottom of it.

Triggers

  • Click
  • State change
  • Neumorphic
  • Glow

Techniques

  • CSS variables
  • CSS transition
  • Radial gradient
  • Pseudo elements

Difficulty

Beginner

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Fan mode"), each in a <label> and named by aria-label (Quiet, Balanced, Boost); the knobs are aria-hidden. :focus-visible outlines the knob in violet.

Reduced motion

The transitions are switched off.

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

More radios

See all
Stake
StakeGet code
Reagent
VialsGet code
Shipping
VitroGet code
Delivery window
WashGet code