magic-ui
components
ui

meteors

A meteor shower effect.

animated
effect
gradient
positioning
View Docs

Source Code

Files
meteor
1import { Meteors } from "@/components/magicui/meteors";
2 
3export function MeteorDemo() {
4  return (
5    <div className="relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border bg-background md:shadow-xl">
6      <Meteors number={30} />
7      <span className="pointer-events-none whitespace-pre-wrap bg-gradient-to-b from-black to-gray-300/80 bg-clip-text text-center text-8xl font-semibold leading-none text-transparent dark:from-white dark:to-slate-900/10">
8        Meteors
9      </span>
10    </div>
11  );
12}