Skip to Content

Orbital Limb Scene

Planet edge sunrise background: a world lit from behind, seen from orbit, on a dark sky with soft grain. Options add an eclipse orb, corner light blooms, three decay stages and a curve setting for the limb.

Installation

pnpm dlx shadcn@latest add @01orbital/orbital-limb-scene

Usage

import { OrbitalLimbScene } from "@/components/scene/orbital-limb-scene"

// curve bends the planet (lower is harder); orb places the eclipse mark on it.
export default function OrbitalLimbSceneDemo() {
  return (
    <div className="grid w-full place-items-center p-6">
      <div className="relative aspect-16/10 w-full max-w-2xl overflow-hidden rounded-lg">
        <OrbitalLimbScene
          curve={110}
          horizon={62}
          orb={{ x: 62, size: 92 }}
          light={{ key: "dual" }}
        />
      </div>
    </div>
  )
}

This example installs with everything it uses:

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

Examples

Eclipseorbital-limb-scene-eclipse

Orbital Limb Scene Eclipse: an example of orbital-limb-scene.

pnpm dlx shadcn@latest add @01orbital/orbital-limb-scene-eclipse

API reference

The orbital limb: a planet's edge lit from behind, seen from orbit, with soft grain.

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:

Used in blocks

17 blocks are built with Orbital Limb Scene; the first 12:

Last updated on