Skip to content

    Browse components

    Striped Grid

    A slowly scrolling grid of diagonally hatched cells that light up and fade as the cursor passes. Canvas 2D.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/striped-grid

    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/striped-grid.json

    Usage

    import { StripedGrid } from "@/components/ui/striped-grid";
    
    <div className="relative h-96">
      <StripedGrid highlightColor="#c6ff3d" />
    </div>

    Props

    PropTypeDefaultDescription
    cellSizenumber56Px per cell, including the gap.
    gapnumber8Px between cells.
    stripeSpacingnumber7Px between stripes inside a cell.
    stripeColorstring"#52525b"Stripe and outline color of resting cells.
    highlightColorstring"#c6ff3d"Color of cells under the cursor.
    speednumber12Scroll speed in px per second.
    classNamestring—Extra classes for the root element.