Search
Search components and blocks
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.
Install
$ pnpm dlx shadcn@latest add @ditherui/button
Props
PropTypeDefault
variant"default" | "outline" | "secondary" | "ghost" | "destructive" | "link""default"size"md" | "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg""md"ripplebooleanfalseloadingbooleanfalseWhen 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.