Particle Text(019)

Interactive canvas particle physics rendering text as thousands of interactive points.

HoverClick
PARTICLES

Installation

$npx kibo add particle-text

Usage

1import { ParticleText } from "@/components/kibo/particle-text/component";
2
3export default function Example() {
4 return (
5 <ParticleText />
6 );
7}

Props Reference

PropTypeDefaultDescription
textstring'React Bits'The text content to display and animate.
particleSizenumber2Controls the particle size for the component animation.
densitynumber4Controls the density for the component animation.
colorstring'#ffffff'Text or primary fill color.
highlightColorstring'#8b5cf6'Controls the highlight color for the component animation.
scatternumber180Controls the scatter for the component animation.
gatherDurationnumber1600Controls the gather duration for the component animation.
staggernumber420Stagger delay in seconds between individual characters/elements.
pointerRepelnumber40Controls the pointer repel for the component animation.
repelRadiusnumber120Controls the repel radius for the component animation.
idleDriftnumber0.7Controls the idle drift for the component animation.
trigger'mount' | 'hover' | 'click''mount'Controls the trigger for the component animation.
fontSizenumber | string'clamp(3rem, 12vw, 8rem)'Font size in pixels, rems, or fluid clamp notation.
fontWeightnumber | string800Font weight (e.g., 400, 700, 900, 'bold').
fontFamilystring'inherit'Custom font family to apply to the rendered typography.
glowbooleantrueControls the glow for the component animation.
classNamestring''Additional CSS classes for styling and layout.
styleCSSProperties-Controls the style for the component animation.