Tesserae

Progress Indicator

Description

The ProgressIndicator is a UI component used to visually represent the completion status of an operation when the total units of work are known. It displays a horizontal progress bar that updates based on a percentage value. If the progress cannot be determined, the component can be set to an "indeterminate" state, where continuous animation is shown instead of a finite progress percentage. Use this component to provide users with a visual indication of progress in long-running operations.

Usage

The component is instantiated using the fluent API provided by the Tesserae UI static class. You can create a new ProgressIndicator and configure it to show either a determinate progress value (by setting a percentage) or an indeterminate state.

Below is an example of how to instantiate and update the progress indicator:

API reference

class

ProgressIndicator

public class ProgressIndicator : IComponent, IHasForegroundColor

A horizontal progress bar with optional label and either determinate or indeterminate state.

Constructors

Constructor
ProgressIndicator
public ProgressIndicator()

Initializes a new instance of this class.

Properties

Property
ProgressIndicator.Foreground
public string Foreground { get ; set ; }

Gets or sets the CSS color (foreground) of the component.

Methods

Method
ProgressIndicator.Progress
public ProgressIndicator Progress(int position, int total)

Configures the component to progress.

Method
ProgressIndicator.Progress
public ProgressIndicator Progress(float percent)

Configures the component to progress.

Method
ProgressIndicator.Indeterminated
public ProgressIndicator Indeterminated()

Configures the component to indeterminated.

Method
ProgressIndicator.Render
public HTMLElement Render()

Renders the component's root HTML element.

Samples

Displaying Various Progress States

This sample shows how to create and render multiple instances of the ProgressIndicator component in various states including determinate progress and an indeterminate state.

See also

Referenced by

© 2026 Tesserae. All rights reserved.