Components/Theme Toggle

Theme ToggleNew

Icon menu that switches between system, light and dark by toggling the dark class, and remembers the choice.

Appearance

Preference: system

Installation

$npx shadcn@latest add @opendraft/theme-toggle

Needs the @opendraft registry in your components.json. See Installation.

Dependencies

Source

The files the install command adds to your project. They're yours to edit.