---
title: "Download with States | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/download-button"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/buttons/download-button.tsx"
install_command: "npx motion-ui-skill add download-button"
dependencies: ["clsx","lucide-react","react","tailwind-merge"]
category: "craft"
subcategory: "buttons"
---

# 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

```bash
npx motion-ui-skill add download-button
```

## Dependencies

- `clsx`
- `lucide-react`
- `react`
- `tailwind-merge`

## Usage

```tsx
"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 |

## Source Files

- [components/buttons/download-button.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/buttons/download-button.tsx)
- [lib/cn.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/cn.ts)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
