Skip to content
Premium & Brand

Dot Pattern

Server Component

A faint SVG dotted field behind content.

Import

tsx
import { DotPattern } from "@cronus-ui/ui";
bash
npx cronus-ui add dot-pattern

Examples

API Reference

Generated from the component's exported types.

DotPatternProps

Extends HTMLAttributes<HTMLDivElement>

Skip DotPatternProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>
gap
number16Gap between dots, in pixels.
radius
number1Dot radius, in pixels.