Skip to content

    Browse components

    Number Ticker

    An odometer-style number in a squircle window: every digit is a 0-9 strip that rolls to its new value.

    Credit: Calamansi UI (MIT)

    Open
    Customize
    calamansi
    white
    slate
    citrus
    up
    down

    Installation

    npx shadcn@latest add @glint-ui/number-ticker

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/number-ticker.json

    Usage

    import { NumberTicker } from "@/components/ui/number-ticker";
    
    <NumberTicker value={12847} variant="calamansi" className="text-5xl" />

    Props

    PropTypeDefaultDescription
    valuenumber—The number to show. Changing it rolls the digits.
    variant"calamansi" | "white" | "slate" | "citrus""calamansi"Surface palette.
    durationnumber0.7Seconds for each digit to settle.
    staggernumber0.05Delay between digits, in seconds (right to left).
    direction"up" | "down""up"Roll the digit strips upward or downward.
    prefixstring""Static text before the digits.
    suffixstring""Static text after the digits.
    formatReactNode—`(value) => string`. Defaults to a grouped en-US number.
    classNamestring—Extra classes for the root element.