mirror of
https://github.com/material-components/material-web.git
synced 2026-03-09 00:09:23 +08:00
32 lines
619 B
TypeScript
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;
|
|
}
|