Pyramid

A four-sided pyramid with a label on every face. It turns on its own. Drag to spin it and it keeps the swing.

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

Pyramid3D props

PropTypeDefaultDescription
labels[string, string, string, string]["Depth", "Light", "Space", "Form"]Labels for the four faces.
sizenumber200Base width in px.
speednumber22Idle turn speed in degrees per second.
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