Componentdata0.5 KB gzipZero dependencies
Crypto Ticker
Crypto price ticker with animated up/down arrows.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add crypto-tickerOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { CryptoTicker } from "@/components/ui/crypto-ticker"; <CryptoTicker />Source code
crypto-ticker.tsx + 1 helperZero 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
| Prop | Type | Description |
|---|---|---|
| entries | CryptoEntry[] | Configures entries. (Default: []) |