@ryanhelsing/ry-ui
Version:
Framework-agnostic, Light DOM web components. CSS is the source of truth.
22 lines • 621 B
TypeScript
/**
* <ry-switch>
*
* Toggle switch component.
*
* Usage:
* <ry-switch name="darkMode">Dark mode</ry-switch>
* <ry-switch name="notifications" checked>Enable notifications</ry-switch>
*
* JS uses data-ry-target for queries, CSS uses classes for styling.
*/
import { RyElement } from '../core/ry-element.js';
export declare class RySwitch extends RyElement {
#private;
static observedAttributes: readonly ["checked", "disabled"];
setup(): void;
get checked(): boolean;
set checked(value: boolean);
get value(): string;
set value(val: string);
}
//# sourceMappingURL=ry-switch.d.ts.map