Skip to content

Number Ticker

Counts up to a number when it scrolls into view — locale-aware formatting, compact notation, prefix/suffix and zero layout shift.

Installation

pnpm dlx shadcn@latest add @portfolio-kit/number-ticker
First time? Add the @portfolio-kit registry to components.json
components.json
{
  "registries": {
    "@portfolio-kit": "https://www.parthjadhav.com/products/portfolio-kit/r/{name}.json"
  }
}

Usage

Examples

Stats Row

A row of key numbers under an intro — prefixes, suffixes and compact notation keep each figure short.

Formats

Pass formatOptions for currency, percent or units, locale for your site’s number format (default en-US), and from for a custom starting value.

Inline in Copy

Tickers sit in running text like any other word — style them with a heavier color to make the numbers the point.

API Reference

Used in