# Components Button: Morphing Buttons

Buttons that morph their shape, size, or label between states. Use for loading, success, and submit flows that confirm progress to the user.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/buttons/morphing-buttons
- Collection: [Components](https://www.shadcn-ui-blocks.com/blocks/components), Free tier
- Group: [Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/components/buttons/morphing-buttons.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-buttons-morphing-buttons
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/components-buttons-morphing-buttons.json"`.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/components/buttons/morphing-buttons`

## About this block

Morphing Buttons displays five buttons in a centered, wrapping row: Default,
Secondary, Destructive, Outline, and Ghost. Every button starts with a
slightly rounded rectangle corner and smoothly transitions to a full pill
shape on hover, giving each variant the same consistent motion while
preserving its own fill, border, and color treatment.

All five variants are independent. You can keep only the ones your interface
needs, reorder them, or relabel each button without affecting the others.
The hover animation is the same across every variant, so mixing and matching
subsets still looks intentional and cohesive.

## When to use

Reach for this block on a developer tools company's component showcase,
documentation site, or design system preview page where you want to show
the full range of available button styles in one place. It works better than
a plain static grid when the goal is to demonstrate interactive behavior
rather than just surface color tokens.

A natural flow around it on a Components page:

**Before**

- [Interactive Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/interactive-buttons) to
  show click and press feedback before introducing shape transitions
- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) to set visual context around status
  labels that often sit near action buttons

**After**

- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) where these button variants are likely
  to appear in a real layout
- [Slide Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/slide-buttons) to continue the
  motion theme with a label or color reveal on hover

## What you can customize

The block covers all five standard variants in one preview. A few focused
ways to adapt it:

- **Subset to your variants.** Remove any variants your product does not
  use so the demo stays relevant to your actual design system.
- **Relabel each button.** Swap "Default" and "Destructive" for the real
  action names your app uses, such as "Deploy" or "Delete", to make the
  preview feel production ready.
- **Adjust the transition speed.** The animation duration is the one value
  most worth tuning to match the overall tempo of your interface.

> Tip: if you use this block in documentation, place the Destructive variant
> last or visually separated so readers do not read the red as an error state
> on the page itself.

## More in Components Buttons

- [Border Animation Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/border-animation-buttons)
- [Cut Corners Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/cut-corners-buttons)
- [Extra Large Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/extra-large-buttons)
- [Extra Small Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/extra-small-buttons)
- [Grow Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/grow-buttons)
- [Interactive Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/interactive-buttons)
- [Liquid Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/liquid-buttons)
- [Pixel Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/pixel-buttons)
- [Pulse Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/pulse-buttons)
- [Rotate Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/rotate-buttons)
- [Shadow Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/shadow-buttons)
- [Skew Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/skew-buttons)
- [Slide Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/slide-buttons)
- [Social Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/social-buttons)
- [Squeeze Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/squeeze-buttons)
- [Underline Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/underline-buttons)
