igniteui-webcomponents
Version:
Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.
30 lines (29 loc) • 931 B
TypeScript
import { IgcCheckboxBaseComponent } from './checkbox-base.js';
/**
* Similar to a checkbox, a switch controls the state of a single setting on or off.
*
* @element igc-switch
*
* @slot - The switch label.
*
* @fires igcChange - Emitted when the control's checked state changes.
*
* @csspart base - The base wrapper of the switch.
* @csspart control - The switch input element.
* @csspart thumb - The position indicator of the switch.
* @csspart label - The switch label.
*/
export default class IgcSwitchComponent extends IgcCheckboxBaseComponent {
static readonly tagName = "igc-switch";
static styles: import("lit").CSSResult[];
static register(): void;
private static readonly increment;
private inputId;
private labelId;
protected render(): import("lit-html").TemplateResult<1>;
}
declare global {
interface HTMLElementTagNameMap {
'igc-switch': IgcSwitchComponent;
}
}