eds-progress-bar

Explore the Interactive Component

Use the playground below to experiment with the component. Click the button to view the full Storybook deployment for additional examples and configurations.

eds-progress-bar Open in Storybook

See It in Use with Code

Check out this practical implementation of component.

Plain HTML

In React

In Vue

Overview

EdsProgressBar shows how far a task has got, 0–100.

A thin rounded track with an accent fill (dark green on light, neon on dark) and the value in mono to the right. label names the bar (shown above it, and used as the accessible name); indeterminate shows an animated bar for work of unknown length.

Properties

PropertyAttributeDescriptionTypeDefault
indeterminateindeterminateWork of unknown length: an animated bar, no value.booleanfalse
labellabelVisible label and accessible name of the progress bar (e.g. “Uploading dataset”). Without it the bar is announced as “Progress”.stringundefined
labelPaddingXlabel-padding-x[DEPRECATED] No longer used — the label row aligns with the bar. Kept for API compatibility.

string'3rem'
showLabelshow-labelShow the percentage (always shown in the default variant).booleanfalse
valuevalueThe progress value (0-100).number0
variantvariantVisual variant for the progress bar. - “default”: 8px rounded track, value to the right - “brand”: hairline 4px track; label and value sit above it"brand" | "default"'default'

Methods

updateValue(newValue: number) => Promise<void>

Method to update the progress value externally.

Parameters

NameTypeDescription
newValuenumberThe new progress value (0-100).

Returns

Type: Promise<void>


Built with StencilJS