navoyovan

Square Wave Loader

Component 40

About

A mathematical, physics-based square wave loading animation with dynamic height calculations and dark mode support.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Square Wave Loader to your project and fits it to your theme.

Code

How Square Wave Loader is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { SquareWaveLoader } from "@/components/ui/square-wave-loader";

export default function DemoOne() {
  return (
    <div className="flex min-h-[300px] w-full items-center justify-center bg-white text-black transition-colors duration-300 dark:bg-zinc-950 dark:text-white">
       <SquareWaveLoader count={5} size={14} />
    </div>
  )
}

More by navoyovan

View all
  • Hover Expand Button

    Hover Expand Button

  • Action Button

    Action Button