Loading State Button
Copy this design of a submit button that shows loading, then success or error, linked to the real request, and have your AI build it into your forms.
Customize the prompt
What it does
Every click on a submit button comes with a tiny panic (did that work?). Grab this design here and your AI builds the same honest button into your own forms.
This button answers right away, a spinner while the request runs, then a clear success, or back to normal if it failed.
- Loading starts when the real request starts; success only shows once the server truly confirms, and faking it is banned in the code.
- If something goes wrong, your form's own error messages take over.
- While it spins, the button locks itself, so nobody can send the information twice.
- It keeps its size in every state; the page never jumps. Click the preview to watch it happen.
How it works
Pick the loading look, a spinning ring or three pulsing dots.
Pick the success moment: a quick checkmark swap, or the label changing to Done for about a second and a half.
Copy the prompt, the button's build notes for your AI.
Paste it into whichever AI you use, Gemini, Copilot, Claude, any of them.
Tell your AI where the button goes when it asks: every form, one specific form, one type of page, or one type of button.
Tell your AI what each button submits when it asks, so the states follow the real request, nothing fake.
Click submit twice fast as a test; the second click should do nothing while the first is still spinning.
Watch one full run: spinner, confirmation, back to normal, all without the button ever changing size.
Check it on your phone, the button should stretch full width if your form's other buttons do, and stay easy to tap.
What you can customize
- Loading indicator: the spinning ring is the quiet classic; the three pulsing dots feel a bit more playful. The click can feel physical too, with a button that dips in when you press it.
- Success display: the checkmark is wordless and universal; the label change shows Done for a moment before the button goes back to normal.
- Size, color, and lettering stay completely your own, because your AI builds the states into the buttons you already use. Pairs with the icon slide button if you also want an invitation before the click. Browse the rest of the button collection to see what else your forms could use.
You'll also like
Before / After Slider
A draggable comparison of two images: same subject, real photos, and a divider the reader controls.
Social Media Links Section
Customize and copy this social media links section for your website. It lists your profiles as cards, with one link to each that opens in a new window. Customize it to your liking, copy the instructions, and let your AI build it inside your project.
Newsletter Section
A full-width inline email capture section that earns the signup with a clear promise, not a popup.