material-web/checkbox/checkbox.ts
Elizabeth Mitchell c35bad0c64 fix: rename internal <styles>.css.js to <styles>.css
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
2024-02-28 16:20:22 -08:00

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