Puffy

Size
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-puffy

About this component

A size picker made of four soft clay squares, each with a small radio dimple. The one you pick takes its colour, puffs up with a bounce and its dimple fills white.

Triggers

  • Click
  • State change
  • Spring
  • Keyframe

Techniques

  • Keyframes
  • CSS variables
  • CSS transition
  • border-radius

Difficulty

Beginner

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Size"), each in a <label> and named by aria-label ("Small" to "Extra large"); the letters on the squares are aria-hidden. :focus-visible outlines the square.

Reduced motion

The pop and the transitions are switched off.

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

More radios

See all
Ribbon
RibbonsGet code
Paper size
RisoGet code
Range
SegmentGet code
Are you coming?
SketchGet code