@synergy-design-system/components
Version:
This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define
39 lines (38 loc) • 1.67 kB
TypeScript
/**
* ---------------------------------------------------------------------
* 🔒 AUTOGENERATED BY VENDORISM
* Removing this comment will prevent it from being managed by it.
* ---------------------------------------------------------------------
*/
import SynergyElement from '../../internal/synergy-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://synergy-design-system.github.io/?path=/docs/components-syn-progress-ring--docs
* @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 SynProgressRing extends SynergyElement {
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").TemplateResult<1>;
}