Ticker

A composable finance ticker for displaying symbols, prices and changes.

Installation

npx love-ui@latest add ticker

Usage

import { Ticker, TickerIcon, TickerSymbol, TickerPrice, TickerChange } from "@/components/ticker"
<Ticker>
  <TickerIcon src="/logo.png" alt="AAPL" />
  <TickerSymbol>AAPL</TickerSymbol>
  <TickerPrice value={150.25} />
  <TickerChange value={2.5} percent />
</Ticker>

Features

  • Flexible composition with optional icon, symbol, price, and change components
  • Color-coded up/down price change indicators with optional percentage formatting
  • Support for ISO 4217 currencies and IETF BCP 47 locales
  • Icon fallback to symbol when icon source is not valid

Examples

With percentage change

Currencies and locales

Inline usage