Docs
Grid Pattern

Grid Pattern

Subtle SVG grid lines background with optional highlighted squares.

Grid Pattern

Subtle animated CSS grid lines background

Installation

Usage

import { GridPatternBackground } from "@/components/pioneerui/grid-pattern"
 
export default function Page() {
  return (
    <GridPatternBackground
      squares={[[2, 2], [4, 3], [6, 1]]}
    >
      <h1>Your content</h1>
    </GridPatternBackground>
  )
}

Props — GridPattern

PropTypeDefaultDescription
widthnumber40Grid cell width in px
heightnumber40Grid cell height in px
squares[x, y][]undefinedHighlighted cell coordinates
classNamestringundefinedSVG class (use for mask, color)