Waves Arrow Down
An animated down-arrow icon with two wavy lines beneath it, built on Motion. The arrow's head bobs down and the shaft squashes on hover, and a ref handle can trigger the same animation programmatically.


shadcn add · no workarounds · theme neutral (none shipped)Installation
Usage
import { WavesArrowDownIcon } from "@/components/ui/waves-arrow-down";export default function Example() { return <WavesArrowDownIcon className="text-foreground" size={28} />;}- Download, descend, or 'flow down' actions where a wavy-arrow metaphor fits, such as a download or sync button
- Hover feedback on icon buttons or list rows that need subtle motion without a large layout change
- Interactive controls that should animate on demand through a ref, for example when a task starts or finishes
- Decorative or status indicators that suggest downward flow, such as a data stream or water-level motif
Examples
Hover-animated icon button
The icon animates on hover by default, so it works inside a plain button without extra wiring.
import { WavesArrowDownIcon } from "@/components/ui/waves-arrow-down";export default function DownloadButton() { return ( <button type="button" className="inline-flex items-center gap-2 rounded-md border px-3 py-2 text-sm"> <WavesArrowDownIcon size={20} className="text-primary" /> Download </button> );}Programmatic control via ref
Passing a ref switches the component to controlled mode. Hover no longer animates it by default. Call startAnimation and stopAnimation from the parent.
import { useRef } from "react";import { WavesArrowDownIcon, type WavesArrowDownIconHandle } from "@/components/ui/waves-arrow-down";export default function SyncStatus() { const iconRef = useRef<WavesArrowDownIconHandle>(null); return ( <div onMouseEnter={() => iconRef.current?.startAnimation()} onMouseLeave={() => iconRef.current?.stopAnimation()} > <WavesArrowDownIcon ref={iconRef} size={32} /> </div> );}Custom hover handlers in uncontrolled mode
Without a ref, the component still animates on hover. Passing onMouseEnter and onMouseLeave adds extra logic to the same events.
import { WavesArrowDownIcon } from "@/components/ui/waves-arrow-down";export default function TrackedIcon() { return ( <WavesArrowDownIcon size={24} className="cursor-pointer" onMouseEnter={() => console.log("hover start")} onMouseLeave={() => console.log("hover end")} /> );}API reference
Accessibility
- The icon is decorative SVG with no title or aria-label. When it conveys meaning, add aria-label or visible text to the parent button or link, and set aria-hidden="true" when it is purely decorative.
- The outer wrapper is a plain div. If it is clickable, render it inside a button or anchor, or add role="button", tabIndex, and keyboard handlers yourself.
- The hover motion is a subtle positional change. Respect prefers-reduced-motion by disabling startAnimation calls or the hover trigger in environments that request reduced motion.
- The icon uses currentColor, so it keeps the surrounding text color and meets contrast requirements when the parent text does.
Docs written by anthropic:claude-haiku-5-5 from the registry source.
Use with Coding Agent
Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.
Use the "Waves Arrow Down" component (lucide-animated/waves-arrow-down) from its shadcn registry.1. Install it with: npx shadcn@latest add https://lucide-animated.com/r/waves-arrow-down.json2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: size, className, onMouseEnter, onMouseLeave, ref, ...props (HTMLAttributes<HTMLDivElement>).Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { WavesArrowDownIcon } from "@/components/ui/waves-arrow-down";export default function Example() { return <WavesArrowDownIcon className="text-foreground" size={28} />;}```Files & dependencies
- waves-arrow-down.tsx