Skip to content

    Browse components

    Filings

    A field of short lines that swing to point at the cursor like iron filings, glowing and stretching as it nears.

    Filings

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/filings

    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/filings.json

    Usage

    import { Filings } from "@/components/ui/filings";
    
    <div className="relative h-96">
      <Filings gap={30} />
    </div>

    Props

    PropTypeDefaultDescription
    gapnumber30Px between line centers.
    lineLengthnumber16Line length in px.
    lineWidthnumber2Line thickness in px.
    colorstring"#3f3f46"Idle line color.
    activeColorstring"#c6ff3d"Color near the cursor.
    radiusnumber220Px radius that lights up.
    classNamestring—Extra classes for the root element.