Color Scheme Select
InputMITColor palette picker dropdown — switch between branded color schemes.
bun add @otfdashkit/ui
Preview
Color Scheme SelectInput
Loading Storybook preview…
Code
@otfdashkit/uiimport { ColorSchemeSelect, Body, Caption } from '@otfdashkit/ui'
export function Example() {
return (
<div className="space-y-3 w-72">
<Caption>Pick a palette</Caption>
<ColorSchemeSelect />
<Body size="sm" tone="muted">
Sets a <code>theme-*</code> class on <code><html></code>. Persists
in <code>otf-theme</code>. Note: this Storybook has its own theme toolbar
which may override the root class — see the change in an app consumer.
</Body>
</div>
)
}
Free with the SDK. This component ships in @otfdashkit/ui under the MIT license.
Props
Props declared in the ColorSchemeSelect source. Inherited HTML attributes are not listed.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | ||
| defaultValue | string | ||
| onChange | (themeClass: string) => void | ||
| options | ComboboxOption[] |