Leans toward your pointer and presses down when clicked.
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 | Content shown inside the button. | |
| depth | number | 8 | Extrusion height in px. |
| max | number | 10 | Max lean in degrees. |
| variant | "accent" | "neutral" | "accent" | Colour style: "accent" is filled with the accent colour, "neutral" is a bordered surface. |