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-button

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • react
  • tailwind-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

  • clsx
  • lucide-react
  • react
  • tailwind-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

Browse this category