Skip to Content

Orbit System

Orbit system diagram with two dashed rings, a chambray planet and two smaller moons in cocoa and celadon, painted with Orbital v4 orbs. Centered and scaled down on small screens.

Installation

pnpm dlx shadcn@latest add @01orbital/orbit-system

Usage

import { OrbitSystem } from "@/components/graphics/orbit-system"

/** A positioned frame with room for both orbit rings and the outer moons. */
export default function OrbitSystemDemo() {
  return (
    <div className="relative isolate h-80 w-full max-w-lg shrink-0 sm:h-[28rem]">
      <OrbitSystem className="scale-[0.55] min-[320px]:scale-75 sm:scale-100" />
    </div>
  )
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/orbit-system-demo

Examples

Midnightorbit-system-midnight

Orbit System Midnight: an example of orbit-system.

pnpm dlx shadcn@latest add @01orbital/orbit-system-midnight

API reference

A small orbit diagram: two dashed rings around a chambray planet, with a cocoa and a celadon moon on the outer ring (radius 192px, at 195° and 20° clockwise from the right), all painted with Orbital.

A 384px square centered in its positioned parent, scaled to 75% below the sm screen width. Static and hidden from assistive tech.

It 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

One block is built with Orbit System.

Last updated on