Components
Theme Mode Toggle
Two-state light/dark toggle button (Sun/Moon) backed by next-themes, with an SSR seed prop to eliminate the first-paint flash.
Installation
npx shadcn@latest add https://ui.saasflare.io/r/theme-mode-toggle.jsonpnpm add @saasflare/uiDemo
"use client"import { ThemeModeToggle } from "@saasflare/ui"/** Light/dark toggle — icon-only and labelled (`showText`) variants. */export function Demo() { return ( <div className="flex flex-wrap items-center gap-4"> <ThemeModeToggle /> <ThemeModeToggle showText /> </div> )}API Reference
Prop
Type