Meteors

A purely decorative ambient background of small diagonal "shooting star" streaks that repeatedly fall across a container, staggered so several are visible mid-flight at once.

Installation

npx dafink-ui add meteors

Demo

Falling meteors

Props

NameTypeDefaultDescription
countnumber10Number of meteor streaks rendered.
childrenReactNode-Optional content rendered above the meteors.
classNamestring''Additional CSS classes.

Accessibility

Meteors' streak layer is aria-hidden, so it's invisible to assistive technology and never intercepts focus or clicks; any optional children render above it and stay fully interactive. Reduced motion is handled with a dedicated CSS media query that sets the entire meteors layer to display: none (rather than just freezing it mid-flight), since a frozen streak doesn't read as an intentional static design. It has no keyboard interaction of its own.