Countdown
Real-time countdown driven by wall-clock deltas (no drift after background switches),
with controlled direct display and uncontrolled self-driving modes, and format tokens
DD / HH / mm / ss / S.
Basic usage
Basic usage
02:00:0001:3001天02:00:01.500
00:01:05受控直显:65000ms(组件不自驱动)
import { LhCountdown } from '@lh-ui/react'
export default function Demo() {
return <LhCountdown time={2 * 3600 * 1000} />
}
Countdown Props
| Prop | Description | Type | Options | Default |
|---|---|---|---|---|
| value | Remaining ms (controlled direct display: the component does not self-drive) | number | — |