Component packs › Orbitals › Valence Toggle
Switch on and the electron jumps to the outer shell; switch off and it falls back, giving off a photon that wiggles away.
Valence Toggle is a switch from Orbitals, a component pack with 6 components: Components that behave like atoms. Price: $2 for the whole pack.
Built with: quantum jump, photon wave, role switch.
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.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | ||
hint | string | ||
on | boolean | ||
onChange | (on: boolean) => void | ||
autoplay | boolean | Showcase: flips by itself until touched. |
set(on: boolean): voiddestroy(): voidimport ValenceToggle from './ValenceToggle';
<ValenceToggle />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Loaders and progress.