Code And Chill

Tide Download Button

Buttons 1

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 Download Button to your project and fits it to your theme.

Code

How Tide Download Button 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
  • Money River

    Money River

    8
  • Fernly Project Dashboard

    Fernly Project Dashboard

    6
  • Glass Smart Home Dashboard

    Glass Smart Home Dashboard

    6
  • Gulp Delete Button

    Gulp Delete Button

  • Sigil OTP Field

    Sigil OTP Field

  • Parachute Download Button

    Parachute Download Button

  • Corbel Sales Dashboard

    Corbel Sales Dashboard

  • Kairo Revenue Analytics

    Kairo Revenue Analytics

More in Buttons

View all
  • Button

    Button

    20
  • Button

    Button

    3
  • Button Group

    Button Group

    18
  • Button

    Button

    149
  • Icon Label Subtext Button

    Icon Label Subtext Button

    69
  • Button

    Button

    9
  • Button

    Button

    37
  • Texture Button

    Texture Button

    113