Dots

Twinkling dot field with density fade and live controls.

A canvas field of small dots that reseeds and twinkles. Anchor density to an edge, then tune size, gap, fade, and brightness.

Color
3px
10px
0.5
0.1
1
0.5
0.3
1
1
0.15
1
1.25
tsx
import { Dots } from "@/components/motion/dots"export function Example() {  return (    <Dots      className="h-[420px] w-full"      dotSize={3}      gap={10}      color="#3b82f6"      maxOpacity={0.5}      flickerChance={0.1}      twinkleSpeed={1}      twinkleStrength={0.5}      minBrightness={0.3}      intensity={1}      opacity={1}      direction="right"      fadeStart={0.15}      fadeEnd={1}      falloff={1.25}    />  )}

Installation

npx @arctis-sh/@arctis-sh/ui@latest add dots

Usage

import { Dots } from "@/components/motion/dots"
<Dots  className="h-[420px] w-full"  direction="right"  color="#3b82f6"/>

API Reference

Dots

PropTypeDefault
dotSizenumber3
gapnumber10
colorstring#3b82f6
backgroundColorstring—
maxOpacitynumber0.5
flickerChancenumber0.1
twinkleSpeednumber1
twinkleStrengthnumber0.5
minBrightnessnumber0.3
intensitynumber1
opacitynumber1
directionnone right left top bottomnone
fadeStartnumber0.15
fadeEndnumber1
falloffnumber1.25
dprnumber1.5
classNamestring—
childrenReactNode—

Also accepts the other native div attributes. Dot size and gap are in pixels.