Component packs › Diorama › Eclipse

Eclipse

The moon thumb covers the sun and the corona opens as a ring of slow rays while stars come out.

Eclipse is a toggle from Diorama, a component pack with 8 toggles: Toggle switches that are tiny worlds. Price: $2 for the whole pack.

Built with: alignment-triggered corona, overshoot bloom, stars.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

More in Diorama

Good for: Toggle switches.