mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 21:57:41 +03:00
We are changing the names of these files to reduce similarity with CSS modules and avoid clashing with tooling built around that. If you're importing `*/internal/styles.css.js`, swap to `*/internal/styles.js`. PiperOrigin-RevId: 611265000
36 lines
856 B
TypeScript
36 lines
856 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2018 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {CSSResultOrNative} from 'lit';
|
|
import {customElement} from 'lit/decorators.js';
|
|
|
|
import {Checkbox} from './internal/checkbox.js';
|
|
import {styles} from './internal/checkbox-styles.js';
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
'md-checkbox': MdCheckbox;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @summary Checkboxes allow users to select one or more items from a set.
|
|
* Checkboxes can turn an option on or off.
|
|
*
|
|
* @description
|
|
* Use checkboxes to:
|
|
* - Select one or more options from a list
|
|
* - Present a list containing sub-selections
|
|
* - Turn an item on or off in a desktop environment
|
|
*
|
|
* @final
|
|
* @suppress {visibility}
|
|
*/
|
|
@customElement('md-checkbox')
|
|
export class MdCheckbox extends Checkbox {
|
|
static override styles: CSSResultOrNative[] = [styles];
|
|
}
|