Jump to a page or a component.
The --app-* theme picker — every palette as a card, grouped by hue, each previewing itself.
No install — ask an AI agent to copy this component from registry.json.
import { OptionPalette } from "@/components/ui/option-palette";light) has no dark side, so its group holds one card.${testId}-<hue> per hue grid and ${testId}-<hue>-<theme key> per card from data-testid.The props worth knowing. Everything else passes straight through to the underlying element, including className, which is merged last so it always wins.
| Prop | Type | Default | Description |
|---|---|---|---|
| value | ColorThemeKey | — | The selected palette. |
| onValueChange | (value: ColorThemeKey) => void | — | Called with a key when its card is clicked. |
| darkLabel | string | "dark" | Copy under a dark palette's name. |
| lightLabel | string | "light" | Copy under a light palette's name. |