material-web/checkbox/checkbox.ts
Andrew Jakubowicz c4ac9f73d9 fix(checkbox)!: rename "lib" directory to "internal"
BREAKING CHANGE: Rename `@material/web/checkbox/lib` to `@material/web/checkbox/internal`. Prefer not using internal files.

PiperOrigin-RevId: 550034503
2023-07-21 13:25:47 -07:00

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];
}