Material Web Team 3b15fe82d4 feat(m3, switch): add lit-to-wiz and tests
PiperOrigin-RevId: 399307790
2021-09-27 16:27:54 -07:00

32 lines
619 B
TypeScript

/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* The state of the switch.
*/
export interface MDCSwitchState {
/**
* Indicates whether or not the switch is disabled.
*/
disabled: boolean;
/**
* Indicates whether or not the switch is processing and showing a loading
* indicator. A disabled switch cannot be processing.
*/
processing: boolean;
/**
* If true, the switch is on. If false, the switch is off.
*/
selected: boolean;
}
export interface MDCSwitchAdapter {
/**
* The state of the component.
*/
state: MDCSwitchState;
}