Theme Toggle Reveal

A pill toggle labelled Light mode or Dark mode. Click it and the new theme is drawn in pixels out from the toggle, in one of eight reveals: circle, diamond, equalizer bars, a diagonal sweep, a zipper closing from top and bottom, sparks, sonar rings or a spiral. View Transitions API with the cross-fade switched off; the sun pulls in its rays and the label turns like a drum.

Usage docs and preview are being generated by the coding agent. Registry metadata is shown meanwhile.
building preview…
The live preview has not been built yet.
See how it was built

Installation

pnpm dlx shadcn@latest add @tween-ui/theme-toggle-reveal

Requires @tween-ui in the registries of your components.json (shadcn adds official directory namespaces automatically).

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "Theme Toggle Reveal" component (tween-ui/theme-toggle-reveal) from its shadcn registry.1. Install it with: npx shadcn@latest add @tween-ui/theme-toggle-reveal2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.

Files & dependencies

  • components/tweenui/theme-toggle-reveal.tsx→ components/tweenui/theme-toggle-reveal.tsx
dependenciesgsap@gsap/reactlucide-react

Looks similar, elsewhere

There is no screenshot of this item to compare yet.