World of Art
Experience the emotions of artists through their works. Let the beauty of art inspire you and fill your soul.
pnpm dlx shadcn@latest add @gammaui/wave-path
import WavePath from "@/components/gammaui/wave-path"
export default function Example() {
return (
<div className="flex min-h-screen items-center justify-center bg-gray-100 dark:bg-gray-900">
<WavePath className="text-black dark:text-white" />
</div>
)
}The WavePath component renders a smooth SVG path that distorts based on your cursor position, then gently animates back to rest when the pointer leaves.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | Tailwind classes for customizing. |
| ...props | React.HTMLAttributes | — | Forwarded to container <div>. |
currentColor."use client"
import React from "react"
import WavePath from "@/components/gammaui/wave-path"
export default function WavePathDemo() {
return (
<div className="flex items-center justify-center py-40">
<WavePath className="text-blue-500" />
</div>
)
}text-red-500, text-blue-400, etc.).movementY logic.