A delivery in miniature
A parcel, opening truck doors, headlights, and road markings animate inside the button.
Component 016Buttons
A complete-order button becomes a miniature delivery scene, loading a parcel and driving into a checked success state.
Quick start
Save delivery-button.tsx in your components folder, then import it below. Requires React and Tailwind CSS.
import DeliveryButton from "@/components/ui/delivery-button";
export default function Example() {
return <DeliveryButton />;
}Behind the interaction
A parcel, opening truck doors, headlights, and road markings animate inside the button.
Pending, completion, and retry states support asynchronous order callbacks.
The truck artwork and scoped animation styles are included in a single file.
Keep exploring
A bright pill folds into a road as a little delivery truck loads up, rolls off with its headlight on, and the button returns with a drawn checkmark.
Two playful delete buttons swallow their letters into a hungry bin, then celebrate success or spit the word back out.