Componentdata0.5 KB gzipZero dependencies

Crypto Ticker

Crypto price ticker with animated up/down arrows.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add crypto-ticker

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { CryptoTicker } from "@/components/ui/crypto-ticker"; <CryptoTicker />

Source code

crypto-ticker.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxcrypto-ticker.tsx36 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface CryptoEntry {  symbol: string;  name: string;  price: string;  change: number;} export interface CryptoTickerProps extends React.HTMLAttributes<HTMLDivElement> {  entries: CryptoEntry[];} /** Crypto ticker tape: up/down animated change indicators. */export function CryptoTicker({ entries = [], className, ...props }: CryptoTickerProps) {

Props

PropTypeDescription
entriesCryptoEntry[]Configures entries. (Default: [])