@ryanhelsing/ry-ui
Version:
Framework-agnostic, Light DOM web components. CSS is the source of truth.
21 lines • 573 B
TypeScript
/**
* <ry-theme-toggle>
*
* Simple theme switcher button.
* Cycles through available themes or toggles light/dark.
*
* Usage:
* <ry-theme-toggle></ry-theme-toggle>
* <ry-theme-toggle themes="light,dark,ocean"></ry-theme-toggle>
*
* JS uses data-ry-target for queries, CSS uses classes for styling.
*/
import { RyElement } from '../core/ry-element.js';
export declare class RyThemeToggle extends RyElement {
#private;
setup(): void;
toggle(): void;
get theme(): string;
set theme(value: string);
}
//# sourceMappingURL=ry-theme-toggle.d.ts.map