Expanding Panels

One panel opens wide while its neighbours lean away in 3D. Hover, focus or tap.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

ExpandingPanels3D props

PropTypeDefaultDescription
panelsExpandingPanel[]The panels to show, each with a title and optional content.
defaultActivenumber0Index of the panel that starts expanded.
heightnumber340Height in px.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks