Theme Switcher

A component to switch between light, dark and system theme.

Installation

npx love-ui@latest add theme-switcher

Usage

import { ThemeSwitcher } from "@/components/theme-switcher"
<ThemeSwitcher />

Features

  • Switch between light, dark and system theme
  • Controlled and uncontrolled mode

Examples

Controlled mode

Uncontrolled mode

Check the console for the onChange event.