Swarm Button

NewPremium

Text rendered as particle swarm that scatters on hover and reforms using boid flocking behavior.

buttonsparticlesswarmboidflockingtext

Installation

Terminalbash
npx motioncraft add swarm-button

Usage

swarm-button.tsxtsx
import { SwarmButton } from "@/components/buttons/premium-buttons";

<SwarmButton particleColor="#a855f7">
  HOVER
</SwarmButton>

Props

PropTypeDefaultDescription
children*stringText to render as particles
particleColorstring#ffffffParticle color
classNamestringAdditional CSS classes
onClick() => voidClick handler

Related Components