Skip to content
daisyBlazor

Countdown

An animated two-digit counter cell (0–99) using daisyUI's countdown. Combine cells for clocks; Countdown.Digits splits seconds into hours, minutes and seconds.
Data display.countdown
Cover · <Countdown>
Maintenance in
7 hours
42 min
18 sec
Production deploy · Friday

Examples

Cells with labels

One Countdown per unit; Label prints underneath.

12 hours
34 min
56 sec
website/Examples/DataDisplay/CountdownBasicExample.razor Source

Live timer

Tick a value from a timer and the digits roll; Digits does the arithmetic.

3:25:0
website/Examples/DataDisplay/CountdownLiveExample.razor Source

Styled boxes

Size and surface come from ordinary utilities.

15 days
10 hours
24 min
39 sec
website/Examples/DataDisplay/CountdownBoxesExample.razor Source

Playground

42 sec
<Countdown Value="42" Label="sec" />

API

<Countdown>

DaisyBlazor

Parameters

  • Label string
    = null

    Optional label rendered below the countdown digit (e.g. "sec", "min", "hours").

  • MinDigits int?
    = null

    Minimum number of digits shown, zero-padding smaller values (emits daisyUI's --digits). Use 2 for clock cells so 9 reads "09". Values outside 1–3 are clamped; null keeps daisyUI's default (1).

  • Value int
    = 0

    The countdown value to display. Clamped to the range 0–999 (daisyUI v5 supports 0–999).

  • Class string
    = null

    Extra CSS classes merged onto the countdown element.

  • Style string
    = null

    Inline CSS styles applied to the countdown element.

Something went wrong while running the docs. Reload