crucıble

Orbit

A cosmic orbital loader: electrons ride tilted elliptical rings around a white-hot, breathing nucleus, each on a seeded phase with a Keplerian-ish period and a soft comet trail. Counter-rotating planes cross like an atom; one cool accent by default, multicolor via colors. Parks at a lit static frame under reduced motion.

csspro

Installation

CLI

npx shadcn@latest add @crucible/orbit

Props

PropTypeDefaultDescription
sizenumber120Overall diameter in px.
ringsnumber3Number of orbital rings (electrons). Clamped to 1–6.
speednumber1Orbit speed multiplier. 1 = default, 2 = twice as fast.
intensitynumber1Glow / bloom strength for the nucleus and electrons. 1 = default; lower is subtler, higher is more radiant. Clamped to 0–2.
colorsstring[]["#6ea8ff"]Accent colors cycled across the orbiting bodies. A single color reads as one elegant cool accent; pass several for a multicolor cosmic system. The nucleus is always a white-hot core blooming into the first color.
pausedbooleanfalseFreeze the system at a parked resting frame (bodies parked, core lit).
labelstring"Loading"Accessible label announced to screen readers.
Also accepts all props of React.ComponentPropsWithoutRef<"div">they pass through to the underlying element.

Honors prefers-reduced-motion with a designed static fallback, and passes className through.