v0.1 public beta early access on GitHub
Home / Components / theme-toggle

Theme ToggleAndroid

Light/dark switch bound to ThemeProvider.

$ npx lumioui add theme-toggle
import { ThemeToggle } from "@/components/ui/theme-toggle/theme-toggle";
Props3
variant? ThemeToggleVariant Visual style. Default "icon".
accessibilityLabel? string Accessible label. Default announces the action — "Switch to light theme" / "Switch to dark theme" based on current state.
className? string
Theme Toggle — Iconicon.tsx
theme-toggle/variants/icon.tsx open

Light/dark switch bound to ThemeProvider.

Theme Toggle — Pillpill.tsx
theme-toggle/variants/pill.tsx open

Light/dark switch bound to ThemeProvider.

Theme Toggle — Switchswitch.tsx
theme-toggle/variants/switch.tsx open

Light/dark switch bound to ThemeProvider.