Search

Search components and blocks

Sign in

Motion Button

The shadcn Button with a subtle spring scale on hover and press, an optional ripple, and respect for reduced-motion preferences — all via Motion.

pnpm dlx shadcn@latest add @ditherui/button

Install

$ pnpm dlx shadcn@latest add @ditherui/button

Props

variant"default" | "outline" | "secondary" | "ghost" | "destructive" | "link""default"
size"md" | "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg""md"
ripplebooleanfalse
loadingbooleanfalse

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