Browse components
Floating Lines
Three depth layers of thin glowing wave lines drifting with parallax and parting around the cursor.
Floating Lines
Installation
npx shadcn@latest add @glint-ui/floating-linesFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/floating-lines.json
Usage
import { FloatingLines } from "@/components/ui/floating-lines";
<div className="relative h-96 bg-black">
<FloatingLines colors={["#a78bfa", "#22d3ee", "#c6ff3d"]} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | ["#a78bfa","#22d3ee","#c6ff3d"] | Up to three colors blended across each ribbon. |
| lineCount | number | 14 | Lines per layer. |
| lineWidth | number | 1.2 | Line width in px. |
| amplitude | number | 1 | Wave height. |
| speed | number | 1 | Animation speed. |
| bend | number | 1 | How strongly lines part around the cursor. |
| parallax | number | 1 | Layer shift with the cursor. |
| className | string | — | Extra classes for the root element. |