Skip to content

    Browse components

    Weave Lines

    Dozens of fine horizontal lines weaving into flowing silk-like waves that bulge away from the cursor. Canvas 2D.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/weave-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/weave-lines.json

    Usage

    import { WeaveLines } from "@/components/ui/weave-lines";
    
    <div className="relative h-96">
      <WeaveLines count={36} />
    </div>

    Props

    PropTypeDefaultDescription
    countnumber36Number of lines.
    colorAstring"#22d3ee"Top line color.
    colorBstring"#a78bfa"Bottom line color.
    amplitudenumber48Wave height in px.
    speednumber1Animation speed multiplier.
    lineWidthnumber1Stroke width in px.
    interactivebooleantrueLines bulge away from the cursor.
    bulgeRadiusnumber140Bulge radius in px.
    classNamestring—Extra classes for the root element.