mirror of
https://github.com/material-components/material-web.git
synced 2024-10-26 21:56:56 +03:00
c4ac9f73d9
BREAKING CHANGE: Rename `@material/web/checkbox/lib` to `@material/web/checkbox/internal`. Prefer not using internal files. PiperOrigin-RevId: 550034503
35 lines
800 B
TypeScript
35 lines
800 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2018 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {customElement} from 'lit/decorators.js';
|
|
|
|
import {Checkbox} from './internal/checkbox.js';
|
|
import {styles} from './internal/checkbox-styles.css.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 = [styles];
|
|
}
|