Folders

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-folders

About this component

Three file folders stacked in a drawer, each with its tab at a different place along the top. Choosing a tab brings that folder to the front with a little lift and tips its front flap open in 3D to show the papers inside; the folder it replaces closes and drops back. Nothing rises above the bodies, so every tab stays in view. Pure CSS.

Triggers

  • Click
  • State change
  • 3D

Techniques

  • 3D transform
  • Perspective
  • CSS transition

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Real native radios (visually hidden: absolute, 1x1, opacity 0) inside <label>s in a role="radiogroup" with an aria-label, so arrow keys, focus and screen readers work.

Reduced motion

The changes are instant.

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

More radios

See all
LayoutGet code
MoodGet code
SeatGet code
ShapeGet code