Skip to content

docs(number-flow): add timer example - #4308

Merged
Adebesin-Cell merged 1 commit into
v6from
docs/number-flow-timer
Nov 21, 2026
Merged

Adebesin-Cell merged 1 commit into
v6from
docs/number-flow-timer

Conversation

@Adebesin-Cell

Copy link
Copy Markdown
Collaborator

📝 Description

Adds a NumberFlow + Timer example: a countdown where each unit rolls with NumberFlow.

⛳️ Current behavior (updates)

The number flow docs have no example of driving it from another component.

🚀 New behavior

  • with-timer example in React, Solid, Vue, Svelte and web. It reads the time from useTimer (an ark-timer in web), renders one NumberFlow.Root per unit with minimumIntegerDigits: 2, and sets trend={-1} so digits roll down
  • With Timer story in every framework and a section in the number flow docs
  • Web test for the countdown and reset

🧩 Frameworks

React, Solid, Vue, Svelte, Web

💣 Is this a breaking change (Yes/No):

No

✅ Checklist

  • Typecheck in react, solid, vue, svelte and web
  • Web tests

@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ark-docs Ready Ready Preview Nov 21, 2026 6:12pm UTC

Request Review

@Adebesin-Cell
Adebesin-Cell merged commit d4b8f9e into v6 Nov 21, 2026
10 checks passed
@Adebesin-Cell
Adebesin-Cell deleted the docs/number-flow-timer branch November 21, 2026 18:14

This branch was successfully deployed

1 active deployment
Preview — 2840548f Deployed Nov 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant