Table of Contents

Class TwProgressTheme

Namespace
TwBlazor.Configuration.Components
Assembly
TwBlazor.dll

Theme configuration for the progress bar component (TwProgress<T>). Override any property to customize progress bar styles globally.

[ExcludeFromCodeCoverage]
public class TwProgressTheme
Inheritance
TwProgressTheme
Inherited Members

Remarks

Styles a native <progress> element via Tailwind's arbitrary variant support for the "::-webkit-progress-bar"/"::-webkit-progress-value" (Chromium/Safari) and "::-moz-progress-bar" (Firefox) pseudo-elements, rather than replacing it with custom div markup, so the element keeps its built-in "progressbar" role and automatic aria-valuenow/min/max semantics.

Constructors

TwProgressTheme()

public TwProgressTheme()

Properties

Animated

Gets or sets the classes applied to the decorative overlay rendered over the filled portion of the bar when Animated is true.

public required string Animated { get; set; }

Property Value

string

Remarks

The default theme reuses the tw-wave shimmer defined in input.css, which sweeps a gradient across the overlay via "::after" and so needs it to be positioned and "overflow-hidden". The overlay is sized to the current percentage so the shimmer stays inside the filled portion, and its colour is set through the --tw-wave-color custom property.

Base

Gets or sets the base classes applied to the <progress> element, including the track background, rounding, and the cross-browser pseudo-element resets.

public required string Base { get; set; }

Property Value

string

Colors

Gets or sets the color palette applied to progress bars.

public required TwBlazorPalette Colors { get; set; }

Property Value

TwBlazorPalette

Large

Gets or sets the height classes for Large.

public required string Large { get; set; }

Property Value

string

Medium

Gets or sets the height classes for Medium.

public required string Medium { get; set; }

Property Value

string

Small

Gets or sets the height classes for Small.

public required string Small { get; set; }

Property Value

string

Wrapper

Gets or sets the classes applied to the element that wraps the <progress> element, which positions the Animated overlay.

public required string Wrapper { get; set; }

Property Value

string