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.
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | Text, SVG or icon to extrude. It should draw with currentColor. | |
| depth | number | 26 | Total thickness in px. |
| layers | number | 14 | Number of stacked copies. More is smoother. |
| color | string | "var(--depth-accent)" | Colour of the front face. Any CSS colour. |
| sideColor | string | "color-mix(in oklab, var(--depth-accent) 35%, black)" | Colour at the back of the extrusion. |
| sway | number | 28 | Maximum idle sway in degrees. 0 disables. |
| className | string | Extra classes added to the outer element. |