material-web/switch/switch.ts
Elizabeth Mitchell b3c9c3a336 chore(switch): merge hcm styles
PiperOrigin-RevId: 570543360
2023-10-03 17:30:01 -07:00

32 lines
694 B
TypeScript

/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {customElement} from 'lit/decorators.js';
import {Switch} from './internal/switch.js';
import {styles} from './internal/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.
*
* @final
* @suppress {visibility}
*/
@customElement('md-switch')
export class MdSwitch extends Switch {
static override styles = [styles];
}