material-web/progress/circular-progress.ts
Elizabeth Mitchell ec0a8ebf6e chore: use CSSResultOrNative instead of CSSResult for static styles
PiperOrigin-RevId: 609760445
2024-02-23 10:01:56 -08:00

36 lines
1.0 KiB
TypeScript

/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {CSSResultOrNative} from 'lit';
import {customElement} from 'lit/decorators.js';
import {CircularProgress} from './internal/circular-progress.js';
import {styles} from './internal/circular-progress-styles.css.js';
declare global {
interface HTMLElementTagNameMap {
'md-circular-progress': MdCircularProgress;
}
}
/**
* @summary Circular progress indicators display progress by animating along an
* invisible circular track in a clockwise direction. They can be applied
* directly to a surface, such as a button or card.
*
* @description
* Progress indicators inform users about the status of ongoing processes.
* - Determinate indicators display how long a process will take.
* - Indeterminate indicators express an unspecified amount of wait time.
*
* @final
* @suppress {visibility}
*/
@customElement('md-circular-progress')
export class MdCircularProgress extends CircularProgress {
static override styles: CSSResultOrNative[] = [styles];
}