Skip to content
dots.
Accountv0.1 alphaPro
A LITTLE LIFE. IN EVERY PIXEL.

Small dots.Big possibilities.

A React animation library. Morph particles into shapes, real UI, and playful interactions.

React · View code
Particles → physics → a real button
API
import { useRef } from "react";
import { SwarmSurface, swarmActions, type SwarmSurfaceHandle } from "dots-swarm";
 
// Inside your component:
const surface = useRef<SwarmSurfaceHandle>(null);
const helix = useRef<HTMLDivElement>(null);
const headline = useRef<HTMLHeadingElement>(null);
const button = useRef<HTMLButtonElement>(null);