Offset Block

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-offset-block

About this component

Neo-brutalist hard offset shadow: unselected options sit with a (4px, 4px) black drop-shadow offset; on selection the shadow collapses to (0,0) with a snappy transition, as if the block was pushed flush into the wall.

Triggers

  • Click
  • State change

Techniques

  • Transform only

Difficulty

Beginner

Moves on

Its code uses these curves. Open one to see it plotted and tune it.

Accessibility

Keyboard and screen readers

Hidden native <input type="radio"> per option.

Reduced motion

Shadow transition skipped under prefers-reduced-motion.

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

More radios

See all
PixelGet code
PrismGet code
RadarGet code