UNPKG

@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

38 lines (37 loc) 1.59 kB
/** * --------------------------------------------------------------------- * 🔒 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 bars are used to show the status of an ongoing operation. * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-progress-bar--docs * @status stable * @since 2.0 * * @slot - A label to show inside the progress indicator. * * @csspart base - The component's base wrapper. * @csspart indicator - The progress bar's indicator. * @csspart label - The progress bar's label. * * @cssproperty --height - The progress bar's height. * @cssproperty --track-color - The color of the track. * @cssproperty --indicator-color - The color of the indicator. * @cssproperty --label-color - The color of the label. * @cssproperty --speed - The speed of the progress bar when in indeterminate state. */ export default class SynProgressBar extends SynergyElement { static styles: CSSResultGroup; private readonly localize; /** The current progress as a percentage, 0 to 100. */ value: number; /** When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state. */ indeterminate: boolean; /** A custom label for assistive devices. */ label: string; render(): import("lit").TemplateResult<1>; }