Skip to Content

Terminator Orb

Moon phase graphic: a sphere's day and night line drawn with masked ellipses, where phase sets the lit fraction over regolith, ocean or cloud surfaces. Optional twilight spread, atmospheric rim, city lights, airglow and earthshine for planets and worlds.

Installation

pnpm dlx shadcn@latest add @01orbital/terminator-orb

Usage

import { Terminator } from "@/components/orbs/terminator-orb"

export default function TerminatorOrbDemo() {
  return <Terminator size={280} />
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/terminator-orb-demo

Examples

Blue Crescentterminator-orb-blue-crescent

Planet crescent example: a thin blue Terminator Orb crescent with a soft twilight band, city lights and airglow, as used on the split stats section. Shows the moon phase graphic with its night-side details turned on.

pnpm dlx shadcn@latest add @01orbital/terminator-orb-blue-crescent

API reference

A blue planet seen as a thin crescent: an ocean world lit from the right, a soft twilight band along its day/night line, a faint atmospheric rim, city lights and airglow on the night side. Set size and, if you want a fuller or thinner crescent, phase; the look is fixed.

Static and hidden from assistive tech. Its haze spreads a little past the size box.

Prop

Type

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

Dependencies

npm: cn. The CLI installs it for you.

Used in blocks

One block is built with Terminator Orb.

Last updated on