Skip to content
Feedback & Status

Countdown

client21.5 kB
@stellaria/nebula-webCountdownProps

Preview

Props

8
PropTypeDefault

className

string

finished

ReactNode

labels

Partial<CountdownLabels>

onComplete

(() => void)

size

"sm" | "md" | "lg""md"

to

required

Target instant in ISO (ADR-050: the value that crosses the public API is a string, not a Date).

string

withDays

booleantrue

withSeconds

booleantrue

Slot props

3

Each one spreads over an inner element, so you can restyle a region without forking the component.

PropTypeDefault

captionProps

The label below the figure.

TextSlotProps

unitProps

Every unit — days, hours, minutes. It spreads over ALL of them, not over one.

BoxSlotProps

valueProps

The figure of each unit, already padded to two digits.

TextSlotProps

Also accepts

On top of its own props, this component forwards these groups.

Style props · 127