Graphics

Transit Light Curve

An SVG light curve in currentColor with a dot riding its dip, driven by the same clock as Planet Transit Scene. Render both from one parent so the dip matches the crossing.

The source comes with full access.

One payment of $149 ($49 for now) opens the source right here and lets the CLI install every paid component, with lifetime updates.

Installation

pnpm dlx shadcn add @01orbital/transit-light-curve
npx shadcn add @01orbital/transit-light-curve
yarn shadcn add @01orbital/transit-light-curve
bunx --bun shadcn add @01orbital/transit-light-curve

Part of the 01orbital library. With a license, put ORBITAL_TOKEN in .env.local and the same command installs it (licensed install, pricing).

It lands at components/graphics/transit-light-curve.tsx, as source you own and edit.

Usage

import { TransitLightCurve } from "@/components/graphics/transit-light-curve"

export default function TransitLightCurveDemo() {
  return (
    <div className="h-48 w-full max-w-2xl">
      <TransitLightCurve />
    </div>
  )
}

API reference

It accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs them for you.

Registry pieces it installs with it:

  • planet-transit-scene