Docs
Dot Pattern

Dot Pattern

Repeating radial-dot SVG background pattern with a radial gradient fade mask.

Dot Pattern

Subtle radial dot grid background

Installation

Usage

import { DotPatternBackground, DotPattern } from "@/components/pioneerui/dot-pattern"
 
// Convenience wrapper
export default function Page() {
  return (
    <DotPatternBackground>
      <h1>Your content</h1>
    </DotPatternBackground>
  )
}
 
// Or use DotPattern directly as an SVG overlay

Props — DotPattern

PropTypeDefaultDescription
widthnumber16Pattern cell width
heightnumber16Pattern cell height
crnumber1Dot radius
gapXnumberundefinedExtra horizontal gap
gapYnumberundefinedExtra vertical gap
classNamestringundefinedSVG class (use for mask, color)