$0
Revenue this quarter
Playground
Change the props and copy the code. The controls come from the component's TypeScript types.
Props
import { NumberTicker } from "@/components/ui/number-ticker";<NumberTicker value={48290} prefix="$" />Installation
$ pnpm dlx shadcn@latest add @synccn/number-tickerFirst time in this project? Connect synccn with one command.
Usage
import { NumberTicker } from "@/components/ui/number-ticker";<NumberTicker value={48290} prefix="$" />API reference
Generated from the component's TypeScript types, so it always matches the code.
NumberTicker
Counts up to `value` with an ease-out curve once it scrolls into view.
- valuerequired
numberTarget value.
- from
numberDefault
0Starting value.
- duration
numberDefault
1400Milliseconds to count.
- decimals
numberDefault
0Decimal places.
- prefix
stringDefault
""Text before the number.
- suffix
stringDefault
""Text after the number.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
No ARIA roles, key handling or motion settings in its source. It renders plain elements, so its accessibility comes from the content and labels you give it.