OPUS/UI

Navigation

Particle Text

hot

Text rasterised into thousands of particles that scatter from your pointer and spring home. Clicks blow the letters apart.

canvaspointerclick5 files · 440 locdeps: clsx, tailwind-merge
OPUS

Installation

With the shadcn CLI, pointing at this platform’s registry:

npx shadcn@latest add https://opusui.131199999.xyz/r/particle-text.json

Or offline, straight from your opus55 checkout (copies every file it needs):

node ../tailwind_component/opus55/scripts/add.mjs particle-text

Usage

import { ParticleText } from "@/components/opus/text/particle-text";

<ParticleText text="OPUS" className="h-96" />

API

PropTypeDefaultDescription
textstring—Text to sample.
colorsstring[]—Left→right gradient.
fontWeight / fontFamilynumber / string800 / "inherit"Sampling font (auto-fitted).
densitynumber4Sampling step (px) — lower = more particles.
size / radiusnumber1.6 / 90Particle size and repel radius (px).

Command palette