Extrude

Gives flat text or an icon real thickness by stacking copies along Z. It sways on its own; drag to look around.

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

Extrude3D props

PropTypeDefaultDescription
childrenReactNodeText, SVG or icon to extrude. It should draw with currentColor.
depthnumber26Total thickness in px.
layersnumber14Number of stacked copies. More is smoother.
colorstring"var(--depth-accent)"Colour of the front face. Any CSS colour.
sideColorstring"color-mix(in oklab, var(--depth-accent) 35%, black)"Colour at the back of the extrusion.
swaynumber28Maximum idle sway in degrees. 0 disables.
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