127 Components

Planet Horizon

Backgrounds

Orbital sunrise-from-space hero background featuring a twinkling starfield, a giant curved planetary sphere with a multi-layered glowing atmospheric limb, and an animated anamorphic solar flare cresting along the terminator.

Orbital Sunrise

Atmospheric Limb

Curved planetary horizon with Rayleight atmospheric scattering

Installation

Install directly into your project using the shadcn CLI or copy the source code manually.

Requires:lucide-reactclsxtailwind-merge
$npx shadcn@latest add "https://boseui.site/r/planet-horizon.json"

Props

TypeScript props supported by <PlanetHorizon />.

7 props
PropTypeDefaultDescription
atmosphereColorstring"#38BDF8"Hex color of the glowing planetary atmospheric limb.
flareColorstring"#FDE047"Hex color of the cresting solar flare core and diffraction rays.
flarePositionnumber0.5Normalized position (0 to 1) of the sun along the horizon when autoplay is disabled.
autoplaybooleantrueWhether the solar flare smoothly orbits along the planetary horizon.
starDensitynumber140Number of twinkling background stars rendered above the planet.
childrenReact.ReactNode—Optional foreground hero content rendered over the horizon.
classNamestring—Additional CSS classes for the root container.

Key Features

  • Curved planetary sphere with multi-layered radial exosphere and razor-thin bright limb edge
  • Animated solar crest with horizontal anamorphic lens flare streaks and chromatic iris ghosts
  • Twinkling deep-space starfield automatically occluded by the planetary body
  • Supports both continuous orbital autoplay and manual solar flare scrubbing from 0 to 1
  • Built-in atmospheric theme presets (Terra Dawn, Exoplanet Violet, Martian Amber)

Keyboard & Accessibility

  • Canvas is marked aria-hidden so foreground hero copy and CTAs remain cleanly navigable
  • Includes play/pause orbital motion toggle for users who prefer stationary lighting