UNPKG

vira

Version:

A simple and highly versatile design system using element-vir.

18 lines (17 loc) 922 B
import { type PartialWithUndefined } from '@augment-vir/common'; import { ViraThemeClient, ViraThemeSelection } from '../util/vira-theme-client.js'; /** * A row of buttons for selecting a {@link ViraThemeSelection} (light, dark, or auto). Fires a * `themeSelect` event when the user picks an option; the consumer is responsible for applying the * resulting theme. * * @category Elements */ export declare const ViraThemeSwitcher: import("element-vir").DeclarativeElementDefinition<"vira-theme-switcher", PartialWithUndefined<{ themeClient: Readonly<ViraThemeClient>; /** Override the default English button titles (used as `title` attributes for tooltips). */ labels: Readonly<Record<ViraThemeSelection, string>>; }>, { internalThemeClient: undefined | Readonly<ViraThemeClient>; currentTheme: ViraThemeSelection; }, {}, "vira-theme-switcher-", "vira-theme-switcher-", readonly [], readonly []>;