ParticlesText

An interactive text component with particle effects that react to mouse movement.

Installation

bunx --bun shadcn@latest add undefined/r/ParticlesText.json

Usage

import { ParticlesText } from "@/components/ParticlesText"

<ParticlesText text="Interactive Text" />

API Reference

PropTypeDefaultDescription
textstring-The text to display.
colorstring"#000000"Color of the particles.
backgroundColorstring"transparent"Background color.
minSizenumber0.5Minimum particle size.
maxSizenumber1.5Maximum particle size.
densitynumber10Particle density.