# Meteors

> Rain thin diagonal streaks of light across a card or section background.

Source: https://www.honestui.com/docs/animated/meteors

```tsx
import { Meteors } from "@/registry/default/animated/meteors";

export function MeteorsDemo() {
  return (
    <div className="relative flex h-64 w-full max-w-md flex-col justify-end overflow-hidden rounded-xl border border-border bg-card p-6">
      <Meteors number={16} />
      <p className="relative text-[13px] text-muted-foreground">Changelog</p>
      <p className="relative mt-1 text-lg font-semibold tracking-tight text-foreground">Faster cold starts, everywhere.</p>
    </div>
  );
}

```

## Overview [#overview]

Meteors draws thin streaks that fall diagonally across their parent at staggered times and speeds. Use it sparingly behind a hero, a changelog entry, or a launch card. Positions come from a seeded generator, so the server and client render the same layout and there is no hydration mismatch; change `seed` for a different arrangement.

## Installation [#installation]

<CliBlock commands="[&#x22;meteors&#x22;]" />

## Usage [#usage]

```tsx
import { Meteors } from "@/components/animated/meteors"

<div className="relative overflow-hidden rounded-xl border p-6">
  <Meteors number={16} />
  <h3 className="relative">Faster cold starts</h3>
</div>
```

Meteors fills and clips to its nearest positioned ancestor. Give foreground content `relative` so it stacks above the streaks.

## Accessibility [#accessibility]

The streaks are decorative and hidden from assistive technology. Keep text contrast high where streaks cross it. When reduced motion is requested, the streaks are not shown at all.

## API Reference [#api-reference]


  ### `number`

type: `number` · default: `14`

Number of streaks.

  ### `angle`

type: `number` · default: `215`

Direction of travel in degrees.

  ### `minDelay`

type: `number` · default: `0.2`

Shortest delay before a streak first appears, in seconds.

  ### `maxDelay`

type: `number` · default: `6`

Longest delay before a streak first appears, in seconds.

  ### `minDuration`

type: `number` · default: `3`

Shortest fall, in seconds.

  ### `maxDuration`

type: `number` · default: `8`

Longest fall, in seconds.

  ### `tailLength`

type: `number` · default: `64`

Tail length in px.

  ### `seed`

type: `number` · default: `7`

Seed for the layout. The same seed always gives the same streaks.

  ### `className`

type: `string`

Classes for the meteor layer.
