Search

Search components and blocks

Sign in

Gradient CTA Button

Pro

A pill button that's solid at rest and sweeps into a gradient on hover. Pick a color pair in the corner.

pnpm dlx shadcn@latest add @ditherui/gradient-button

Props

size"sm" | "md" | "lg" | "default""md"
loadingbooleanfalse
fromstring"#f97316"
tostring"#ec4899"

When to use the button

Use these buttons for primary and secondary actions where plain color changes feel flat. Variants cover gradient calls to action, bevel, emboss and stitched looks, blur on hover, and a button that swaps its label to confirm an action.

  • Run the shadcn CLI with the name of the button variant you want. Each variant is its own source file you own.

Suggested components