Gradient Button

Gradient Button from the Buttons group of Depth UI.

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

GradientButton props

PropTypeDefaultDescription
childrenReactNodeLabel or content shown inside the button.
classNamestringExtra classes added to the button. Use them to change size, colour or spacing.
onClick(event: MouseEvent) => voidCalled when the button is clicked or activated with the keyboard.
disabledbooleanSet to true to stop clicks and dim the button.
type"button" | "submit" | "reset""button"Use "submit" inside a form to submit it.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks