enes

Progress Bar

Documentation for the Progress Bar component.

Usage

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

<ProgressBar 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 sets the current progress value of the bar. It should be a number between 0 and 100.

Indeterminate

If you do not set the value prop, the progress bar enters an indeterminate state, meaning it does not have a specific value. This is useful for operations where the duration is unknown.

Hide Rail

The hideRail prop can be used to hide the progress bar rail.

Status

The status prop allows you to set the status of the progress bar to 'paused' or 'error'. This changes the color of the progress bar to indicate different states.

Component Props

NameTypeDescription
valuebindable number | undefinedThe current progress value of the bar, between 0 and 100.
indeterminatebooleanIf true, the progress bar enters an indeterminate state.
hideRailbooleanIf true, the progress bar rail is hidden.
status'paused' | 'error'The current status of the progress bar.
elementbindable SVGElementThe DOM reference of the progress bar element.
railElementbindable SVGRectElementThe DOM reference of the rail element.
trackElementbindable SVGRectElementThe DOM reference of the track element.
secondaryTrackElementbindable SVGRectElementThe DOM reference of the secondary track element.