Prism

A rotating prism that works as tabs. Three to eight faces, buttons, dots and arrow keys. It always turns the same way.

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

Prism3D props

PropTypeDefaultDescription
facesReactNode[]Content of each face of the prism.
widthnumber260Face width in px.
heightnumber170Face height in px.
labelsstring[]Accessible name for each face, in the same order as faces.
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