About
Mechanical Waves with props
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Mechanical Waves to your project and fits it to your theme.
Code
How Mechanical Waves is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { MechanicalWaves } from "@/components/ui/mechanical-waves";
const settings = {
speed: 1,
amplitude: 0,
peakHeight: 50,
width: 1000,
height: 1000,
};
export default function Demo(props: Partial<typeof settings>) {
const s = { ...settings, ...props };
return (
<div className="h-screen w-screen flex items-center justify-center overflow-hidden text-foreground">
<MechanicalWaves
speed={s.speed}
amplitude={s.amplitude}
peakHeight={s.peakHeight}
width={s.width}
height={s.height}
foregroundColor="currentColor"
/>
</div>
);
}
















