Breakpoint

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-breakpoint

About this component

A responsive preview picker: phone, tablet or desktop reshapes the device frame and the page inside reflows from one column of cards to two, then three beside a sidebar, as the width rolls to match.

Dependencies
None
Difficulty
Intermediate
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers3

  • Click
  • State change
  • Morph

Techniques3

  • CSS transition
  • Transform only
  • border-radius

Accessibility

Keyboard and screen readers

A role="radiogroup" with an aria-label around native radio inputs sharing one name, so the arrow keys move the choice and Tab enters the group once; :focus-visible on the input outlines its option.

Reduced motion

The frame and the page change at once.

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

More radios

See all
BurgerGet code
ConnectorGet code
Cue spinGet code
CurrencyGet code