Toggle Segmented Theme

Unlimited

A light / dark / system picker with a sliding thumb and icons that react when chosen, paired with a miniature window that wipes between themes and splits in two for "system".

togglethemesegmenteddark-moderadio

Installation

Run the shadcn CLI in a project with Tailwind CSS. The component lands in components/pixelpapa/toggle-segmented-theme.tsx. This is an Unlimited component, so the CLI needs your API key: set it up once, then install it by name.

Build it with AI

Prefer to let an agent do the wiring? Copy this prompt, describe where the component should go, and paste.

More toggles & switches

All 7 toggles & switches →