Skip to content

    Browse components

    Tide Lines

    Stacked lines flowing like a noise-driven sea; the cursor drags through them and they spring back.

    Tide Lines

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/tide-lines

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/tide-lines.json

    Usage

    import { TideLines } from "@/components/ui/tide-lines";
    
    <div className="relative h-96">
      <TideLines color="#38bdf8" accentColor="#a78bfa" />
    </div>

    Props

    PropTypeDefaultDescription
    colorstring"#38bdf8"Color of the top lines.
    accentColorstring"#a78bfa"Color of the bottom lines.
    gapnumber14Px between lines.
    amplitudenumber1Wave height multiplier.
    speednumber1Flow speed multiplier.
    lineWidthnumber1Stroke width in px.
    cursorForcenumber1How far the cursor drags the lines.
    classNamestring—Extra classes for the root element.