announcement | CountdownAnnouncement | — | Polite announcement produced at 30, 10, and 5 seconds remaining. |
cancelLabel | LocalizedMessage | — | Visible label for the control that stops the automatic action. |
cancelledMessage | LocalizedMessage | — | Visible line shown after the person stops the automatic action. |
completedMessage | LocalizedMessage | — | Visible line shown after the automatic action reaches its deadline. |
message | CountdownMessage | — | Complete localized sentence containing the formatted remaining-seconds placeholder exactly once. |
onCancel | () => void | — | Called after the person stops the automatic action. |
onComplete | () => void | — | Called once when an armed countdown reaches zero. |
seconds | number | — | Whole seconds in a newly armed countdown and the maximum readout when deadline is supplied. Non-finite values
become 0; finite values are rounded down and kept at 0 or above. Changing the resolved value restarts the
countdown. |
active | boolean | true | Whether the countdown is armed. Each transition from false to true starts from seconds, or catches up to
deadline when one is supplied; false holds the starting value and makes the keep control unavailable. |
className | string | — | @deprecated Pass layout through enum props and shipped parts. Request a missing case via find-pattern. |
deadline | number | — | Absolute Unix timestamp in milliseconds for a shared deadline. When omitted, Countdown creates a deadline from
seconds. Changing the deadline starts a new session. |
id | string | — | Id of the root element. |
locale | string | — | BCP 47 locale for the remaining number. Defaults to the runtime locale, so a server-rendered app that must match
the client passes it explicitly. |
ref | Ref<HTMLDivElement> | — | Ref to the root element. |