Material Web Team c8341bbaee Document Switch
PiperOrigin-RevId: 494890466
2022-12-12 19:02:03 -08:00

33 lines
702 B
TypeScript

/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {customElement} from 'lit/decorators.js';
import {Switch} from './lib/switch.js';
import {styles} from './lib/switch-styles.css.js';
declare global {
interface HTMLElementTagNameMap {
'md-switch': MdSwitch;
}
}
/**
* @summary Switches toggle the state of a single item on or off.
*
* @description
* There's one type of switch in Material. Use this selection control when the
* user needs to toggle a single item on or off.
*
* @soyCompatible
* @final
* @suppress {visibility}
*/
@customElement('md-switch')
export class MdSwitch extends Switch {
static override styles = [styles];
}