Download with States
Download with States: Raised 3D download key that sinks while downloading — arrow morphs to spinner to check — then pops back up as a solid emerald done state. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Download with States
npx motion-ui-skill add download-buttonComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactreacttailwind-merge
Source files
Download with States
Raised 3D download key that sinks while downloading — arrow morphs to spinner to check — then pops back up as a solid emerald done state.
Install
npx motion-ui-skill add download-button
Dependencies
clsxlucide-reactreacttailwind-merge
Usage
"use client";
import { DownloadButton } from "@/components/buttons/download-button";
export function DownloadButtonDemo() {
return (
<div className="flex items-center justify-center p-6">
<DownloadButton />
</div>
);
}
API Reference
DownloadButton
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
className |
string |
— | No | Additional CSS classes |