Skip to content

v0.105.0

Choose a tag to compare

@Khalidabdi1 Khalidabdi1 released this 02 Oct 15:50
· 214 commits to main since this release

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" writes 2d 14:03:22 for a banner or a caption. units picks the fields, urgentBelow turns the digits red for the last stretch, and onComplete fires 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.0

Nothing changes for existing code.

This version was published by hand while CI is unavailable, so it carries no npm provenance attestation.