Appearance Toggle
A two-segment light / dark control whose pill slides between the icons. It reports the choice and nothing else — applying the theme is the page's job.
tsx
import { AppearanceToggle } from "@pestoui/core"Controlled
The control is a radio group, so the arrow keys move the selection. Wire onValueChange to whatever sets the .dark class on your document.
Selected: light
Sizes
Uncontrolled with defaultValue. Two instances on one page each need their own srLabel.
Props
Pesto UI · 117 documented components