3D Button

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.

Button3D props

PropTypeDefaultDescription
childrenReactNodeContent shown inside the button.
depthnumber8Extrusion height in px.
maxnumber10Max lean in degrees.
variant"accent" | "neutral""accent"Colour style: "accent" is filled with the accent colour, "neutral" is a bordered surface.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks