Dot Pattern

Displays a background with customizable dots.

Launch your side project
without giving up your evenings

Usage

import { DotPattern } from "@/app/_components/ui/dot-pattern";
<DotPattern dotSize={1} dotSpacing={22} gradientColor="hsl(var(--background))">  {children}</DotPattern>

Props

NameTypeDefaultDescription
dotColorstring"hsl(var(--foreground) / 0.7)"The color of the dots.
dotSizenumber1The size of the dots.
dotSpacingnumber22The spacing between the dots.
gradientColorstring"hsl(var(--background))"The color of the gradient masking the dots.
classNamestring-Adds a custom class to the component.
childrenReactNode-The content to display.