ThatDesignUIOriginalInteractive preview
Morphing submit button
A wide pill that shrinks into a circle with a spinner on submit, then turns green, draws a check and stretches back with a done label.
- Category
- Buttons
- Platform
- Responsive
Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Default state
Use this component
Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.
FreeReact 18+Tailwind v3.4 or v4No extra packages
1. Add it with the shadcn CLI
npx shadcn@latest add https://www.thatdesignui.com/r/morph-submit-button.json2. Use it
Every prop is optionalapp/page.tsx
import MorphSubmitButton from "@/components/morph-submit-button";
export default function Page() {
return <MorphSubmitButton />;
}Prefer to paste it yourself? Open the .
Under the hood
How it’s built
What’s inside
- A 236 by 56px violet (#6d28d9) pill with white 15px semibold text on a pale violet panel.
- Clicking shrinks it to a 56px circle with a spinner over half a second, then it turns green and stretches back while a check draws itself next to the done label.
- It resets after 2.4 seconds.
How it behaves
- Every phase has text, visible or announced (Submitting, then the done label).
- Clicks are ignored while submitting.
- aria-busy is true while submitting.
- Width changes and the check drawing are instant under reduced motion.



