Repository navigation
v0.105.0
A minor release: a new Countdown component.
Added
-
Countdown — the time left until a moment, ticking down to it: a launch, the end of a sale, the wait before a code can be resent. Pass the moment as
to.variant="segmented"puts each unit in a box with its name;"inline"writes2d 14:03:22for a banner or a caption.unitspicks the fields,urgentBelowturns the digits red for the last stretch, andonCompletefires once when the time is up. It reads the clock on every tick rather than counting, so it stays right after the app has been in the background, and seconds round up so it never shows zero while time is left.const [launch] = useState(() => Date.now() + 2 * 86400 * 1000); <Countdown to={launch} /> <Countdown to={saleEnds} variant="inline" size="sm" urgentBelow={300} />
Docs
- Leaderboard, Countdown — preview recordings at the top of each page.
Upgrading
npm install panelui-native@0.105.0Nothing changes for existing code.
This version was published by hand while CI is unavailable, so it carries no npm provenance attestation.