Feedback & Status
Countdown
client21.5 kB
@stellaria/nebula-webCountdownPropsPreview
Props
8| Prop | Type | Default |
|---|---|---|
className | string | — |
finished | ReactNode | — |
labels | Partial<CountdownLabels> | — |
onComplete | (() => void) | — |
size | "sm" | "md" | "lg" | "md" |
to requiredTarget instant in ISO (ADR-050: the value that crosses the public API is a string, not a Date). | string | — |
withDays | boolean | true |
withSeconds | boolean | true |
Slot props
3Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
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