Archived
Template
1
Fork 0
This repository has been archived on 2024-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
Contour/public/@shoelace-style/shoelace/cdn/components/progress-ring/progress-ring.component.d.ts
2024-01-30 10:59:28 -05:00

32 lines
1.4 KiB
TypeScript

import ShoelaceElement from '../../internal/shoelace-element.js';
import type { CSSResultGroup } from 'lit';
/**
* @summary Progress rings are used to show the progress of a determinate operation in a circular fashion.
* @documentation https://shoelace.style/components/progress-ring
* @status stable
* @since 2.0
*
* @slot - A label to show inside the ring.
*
* @csspart base - The component's base wrapper.
* @csspart label - The progress ring label.
*
* @cssproperty --size - The diameter of the progress ring (cannot be a percentage).
* @cssproperty --track-width - The width of the track.
* @cssproperty --track-color - The color of the track.
* @cssproperty --indicator-width - The width of the indicator. Defaults to the track width.
* @cssproperty --indicator-color - The color of the indicator.
* @cssproperty --indicator-transition-duration - The duration of the indicator's transition when the value changes.
*/
export default class SlProgressRing extends ShoelaceElement {
static styles: CSSResultGroup;
private readonly localize;
indicator: SVGCircleElement;
indicatorOffset: string;
/** The current progress as a percentage, 0 to 100. */
value: number;
/** A custom label for assistive devices. */
label: string;
updated(changedProps: Map<string, unknown>): void;
render(): import("lit-html").TemplateResult<1>;
}