SpecOS SpecOS icon Styleguide

Progress Bar

A progress bar component that displays the completion status of a task. Features smooth transitions, customizable styles, and support for different progress values and heights.

Import

import ProgressBar from "$lib/components/ProgressBar.svelte";

Usage

Examples showing different progress bar heights.

Thin (4px)
Default (15px)
Thick (24px)
<ProgressBar value={66} max={100} height="8px" />

Properties

value
Type
number
Default: 0
The current progress value
max
Type
number
Default: 100
The maximum progress value
height
Type
string
Default: "15px"
The height/thickness of the progress bar
rootClass
Type
string
Default: ""
Additional classes for the root element
indicatorClass
Type
string
Default: ""
Additional classes for the progress indicator