Progress

A progress bar built on the native <progress> element — screen readers get real semantics for free.

Progress
<DProgress Value="70" />
Colors
@foreach (var color in new[] { DaisyColor.Default, DaisyColor.Primary, DaisyColor.Secondary, DaisyColor.Accent, DaisyColor.Info, DaisyColor.Success, DaisyColor.Warning, DaisyColor.Error })
{
    <DProgress Color="color" Value="40 + (int)color * 7" />
}
Sizes— height comes from Tailwind h-* utilities
<DProgress Value="60" Class="h-1" />
<DProgress Value="60" Class="h-2" />
<DProgress Value="60" Class="h-3" />
<DProgress Value="60" Class="h-4" />
Custom max— max is any number, not just 100
3 of 10 coffees
<DProgress Value="3" Max="10" Color="DaisyColor.Success" />
<span class="text-sm opacity-60">3 of 10 coffees</span>

API

DProgress

Parameters

Name Type Default Binding Description
Value double 0 — Current value (daisyUI renders the filled portion).
Max double 100 — Maximum value. Defaults to 100 .
Color DaisyColor Default — Semantic color of the filled portion ( progress-primary , ...).
DefaultPrimarySecondaryAccentInfoSuccessWarningErrorGhostNeutral
Class string — — Additional CSS classes appended to the component's computed daisyUI classes.
Style string — — Inline styles applied to the root element.
Connection lost — reconnecting…
Connection failed.
The server has stopped.