For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
Shadcn Labs/

Theme Mode Switch

A light, dark and system segmented control with any transition style. A React dark mode toggle built on View Transitions, installed with the shadcn CLI.

Installation

$ pnpm dlx shadcn@latest add @transition-kit/theme-mode-switch

Usage

import { ThemeModeSwitch } from "@/components/transitions/theme-mode-switch";
<ThemeModeSwitch />
<ThemeModeSwitch transition="polygon-reveal" />

API Reference

ThemeModeSwitch

PropTypeDefaultDescription
transitionstringThe provider's transitionStyle slug such as "circle-reveal". Install the style first.
...propsComponentProps<"div">-Spread onto the radiogroup.