UniqueUI

Meteors Card

Card with animated meteor/shooting star particles falling through the background.

npx uniqueui add meteors-card

Preview

Meteors Effect

Watch the shooting stars fall through this card's background.

Purple Meteors

Custom colored meteors with extra density.

Usage

import { MeteorsCard } from "@/components/ui/meteors-card";

export default function Example() {
  return (
    <div className="grid grid-cols-1 md:grid-cols-2 gap-6 p-10 text-white">
      <MeteorsCard className="h-full">
        <h3 className="text-xl font-bold mb-2">Meteors Effect</h3>
        <p className="text-neutral-400 text-sm">
          Watch the shooting stars fall through this card's background.
        </p>
      </MeteorsCard>
      <MeteorsCard meteorColor="#a855f7" meteorCount={30} className="h-full">
        <h3 className="text-xl font-bold mb-2 text-purple-200">Purple Meteors</h3>
        <p className="text-purple-300/60 text-sm">Custom colored meteors with extra density.</p>
      </MeteorsCard>
    </div>
  );
}

Props

PropTypeDescription
childrenReact.ReactNodeThe payload rendering above the background particle effect.
classNamestringLayout configurations for the wrapping card boundary.
meteorCountnumberTotal integer quantity defining maximum concurrent active meteor particles.
meteorColorstringHex string establishing the primary focal styling of light trails.