Brickslab.

@brickslab/ui-web

Static SVG dot matrix pattern with configurable dot size gap and opacity

Dots

Props

PropTypeDéfautRequisDescription
dotWeight""very-thin" | "thin" | "medium"""medium"Preset simple pour l'épaisseur des points
dotSizenumberundefinedTaille custom des points (prioritaire sur dotWeight)
gapnumber20Space between dots in pixels
offsetnumber0Initial offset of the dot pattern
opacitynumber0.5Opacity of the dots (0-1)
colorstring"rgba(255, 255, 255, 0.5)"Color of the dots

Usage

tsx
import { DotPattern } from "@brickslab/ui-web";

export function MyComponent() {
  return (
    <div className="relative w-full h-screen bg-white">
      <DotPattern dotWeight="thin" gap={20} opacity={0.3} />
      <div className="absolute inset-0 flex items-center justify-center">
        <h1 className="text-4xl font-bold">Dot Pattern</h1>
      </div>
    </div>
  );
}

Variations

Points Très Fins

Très fin

Points Fins

Fin

Points Moyens

Moyen