enes

Progress Ring

Documentation for the Progress Ring component.

Usage

<script>
  import { ProgressRing } from 'fluentui-svelte';
</script>

<ProgressRing value={50} />

Component API

A brief explanation of the props that really need explaining. You can see the rest of the props in the Component Props section below.

Value

The value prop determines the percentage of the progress ring that is filled. It should be a number between 0 and 100.

Indeterminate

The indeterminate prop allows the progress ring to display an indeterminate state, which is useful when the progress cannot be determined.

Hide Rail

The hideRail prop allows the progress ring to hide the rail, which is a background track for the progress indicator.

Status

The status prop allows you to set the status of the progress ring for visual feedback. It accepts values such as 'paused' or 'error'.

Component Props

NameTypeDescription
valuenumberThe percentage of the progress ring that is filled.
minnumberThe minimum value of the progress ring. Default is 0.
maxnumberThe maximum value of the progress ring. Default is 100.
sizenumberThe size of the progress ring in pixels. Default is 32.
indeterminatebooleanIf true, the progress ring displays an indeterminate state.
hideRailbooleanIf true, the progress ring hides the rail.
status'paused' \| 'error'The status of the progress ring, for example 'paused' or 'error'.
refSVGElementThe DOM reference to the SVG element.
railElementSVGCircleElementThe DOM reference to the rail element.
trackElementSVGCircleElementThe DOM reference to the track element.