Countdown#

Countdown gives you a transition effect of changing numbers. Uses the --value CSS variable (0–999) and optionally --digits to set minimum digit display.

Import#

TSX
import { Countdown } from '@sigx/daisyui';

Basic Usage#

TSX
Loading preview...

Large Text#

Use the class prop to add Tailwind utility classes for sizing.

TSX
Loading preview...

Clock Format#

Combine multiple Countdown components to create a clock display.

TSX
Loading preview...

With Labels#

Display countdown values with descriptive labels underneath.

TSX
Loading preview...

Boxed Style#

Wrap each countdown in a styled container for a card-like appearance.

TSX
Loading preview...

Three Digit Values#

Use digits={3} to display values up to 999 with minimum 3 digits.

TSX
Loading preview...

Props#

PropTypeDefaultDescription
valuenumber0The numeric value to display (0–999)
digits2 | 3undefinedMinimum number of digits to display
classstringundefinedAdditional CSS classes