Saasflare UI
Components

Theme Mode Multi Toggle

Three-segment light / dark / system segmented control (Sun / Moon / Monitor) built on ToggleGroup, with icon, icon-inherit, and button appearances.

Installation

npx shadcn@latest add https://ui.saasflare.io/r/theme-mode-multi-toggle.json
pnpm add @saasflare/ui

Demo

"use client"import { ThemeModeMultiToggle } from "@saasflare/ui"/** * The three `appearance` variants side by side. Each toggle wires into * `next-themes` via the docs ThemeProvider, so clicking a segment switches * the whole page between light, dark, and system. */export function Demo() {    return (        <div className="flex flex-wrap items-center gap-6">            <ThemeModeMultiToggle appearance="icon" />            <ThemeModeMultiToggle appearance="icon-inherit" radius="sharp" />            <ThemeModeMultiToggle appearance="button" radius="rounded" />        </div>    )}

API Reference

Prop

Type

On this page