Code And Chill

Tide — Animated Download Button with Progress Ring

Buttons 26

About

Download button whose arrow lies flat, ripples as its rim fills, then stands up as a check. 3 more skins, cancel/fail states and real downloads in the full version: codeandchill.store/components/tide?utm_source=21st

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Tide — Animated Download Button with Progress Ring to your project and fits it to your theme.

Code

How Tide — Animated Download Button with Progress Ring is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { useEffect, useState } from "react";
import TideDownloadButton from "@/components/ui/tide-download-button";

const settings = {
  fileName: "tide-kit.zip",
  fileMeta: "The component, its stylesheet and a demo page · ZIP",
  fileSize: "24.6 MB",
  durationMs: 3000,
};

export default function Demo(props: Partial<typeof settings> = {}) {
  const s = { ...settings, ...props };
  // Tide is a dark component: open dark, then follow the page's `dark` class when it changes.
  const [dark, setDark] = useState(true);

  useEffect(() => {
    const html = document.documentElement;
    const mo = new MutationObserver(() => setDark(html.classList.contains("dark")));
    mo.observe(html, { attributes: true, attributeFilter: ["class"] });
    return () => mo.disconnect();
  }, []);

  const backdrop = dark
    ? "radial-gradient(44% 30% at 50% 44%, rgba(0,229,255,.10), transparent 72%), radial-gradient(90% 46% at 50% 0%, rgba(0,140,190,.16), transparent 68%), linear-gradient(180deg, #15293e, #060e15 54%)"
    : "radial-gradient(44% 30% at 50% 44%, rgba(0,88,212,.08), transparent 72%), radial-gradient(90% 46% at 50% 0%, rgba(0,140,190,.12), transparent 68%), linear-gradient(180deg, #dfe9f4, #f4f7fb 54%)";

  return (
    <div
      className="flex min-h-[100dvh] w-full items-center justify-center overflow-x-hidden px-4 py-10"
      style={{ background: backdrop, backgroundColor: dark ? "#060e15" : "#f4f7fb" }}
    >
      <TideDownloadButton
        theme={dark ? "dark" : "light"}
        fileName={s.fileName}
        fileMeta={s.fileMeta}
        fileSize={s.fileSize}
        durationMs={s.durationMs}
      />
    </div>
  );
}

More by Code And Chill

View all
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    748
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    439
  • Hovira — Glassmorphism Smart Home Dashboard

    Hovira — Glassmorphism Smart Home Dashboard

    87
  • Vitra — Glass Pricing Section

    Vitra — Glass Pricing Section

    79
  • Halden — CRM Dashboard with Sales Pipeline

    Halden — CRM Dashboard with Sales Pipeline

    64
  • Kestrel — Marketing Analytics Dashboard

    Kestrel — Marketing Analytics Dashboard

    44
  • Money River — Sankey Money Flow Chart

    Money River — Sankey Money Flow Chart

    41
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    33

More in Buttons

View all
  • Button

    Button

    168
  • Texture Button

    Texture Button

    122
  • HeroUI Button Group

    HeroUI Button Group

    1
  • Button

    Button

    88
  • Native Button

    Native Button

    7
  • Button

    Button

    74
  • Button Group

    Button Group

    1
  • Button

    Button

    21