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
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
Colors
Gets or sets the color palette applied to progress bars.
public required TwBlazorPalette Colors { get; set; }
Property Value
Large
Gets or sets the height classes for Large.
public required string Large { get; set; }
Property Value
Medium
Gets or sets the height classes for Medium.
public required string Medium { get; set; }
Property Value
Small
Gets or sets the height classes for Small.
public required string Small { get; set; }