Skip to Content

Red Comet Scene

Shooting star space background: a red comet low in a deep blue night sky, with a white-hot head and a curved streaked tail over a star field. Still by default; an optional one-time drift runs only when motion is allowed.

Installation

pnpm dlx shadcn@latest add @01orbital/red-comet-scene

Usage

import type { ComponentProps } from "react"

import { RedCometScene } from "@/components/scene/red-comet-scene"

export default function RedCometSceneDemo(
  props: ComponentProps<typeof RedCometScene>
) {
  return (
    <div data-demo="red-comet-scene" className="relative aspect-[1.425] w-full">
      <RedCometScene {...props} />
    </div>
  )
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/red-comet-scene-demo

Examples

Starfieldred-comet-scene-starfield

Red Comet Scene Starfield: an example of red-comet-scene.

pnpm dlx shadcn@latest add @01orbital/red-comet-scene-starfield

API reference

A red comet low in a deep blue night sky, with a white-hot head and a curved, streaked tail over a star field. Still by default; drift adds one slow move when motion is allowed.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs it for you.

Requires these pieces. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

Last updated on