Price ticker

A React component in Beamline's Trading category.

Symbol, last price with a directional flash, 24h change and stats.

Use it for

  • The header of a market or a watch tile.

Not for

Anatomy

  • symbol and name
  • price (last-move arrow + colour, flashes once)
  • 24h change chip (tint, ▲/▼, sign)
  • stale chip (caller's words)
  • stats (24h high, low, volume)
  • mini trend (with history: beside the symbol in the card, after the change in the bar; coloured by the 24h change)
  • day range (card with high and low: one track from the 24h low to the high, the price's mark on it, the ends labelled; replaces the two figures)
  • change in money (the 24h move as an amount beside the percent, arriving with attention)

Variants

  • layout: bar, card

States

  • live (price coloured by its last move, with ▲/▼)
  • flat (no move yet: ink, no arrow)
  • stale (warning chip with a clock that fades in; the price steps back to the secondary ink, still readable, its arrow keeping the last move)
  • no data (— in ink-3, no change chip; never 0)
  • narrow parent (content-sized, no containment): the stale chip drops under the price, the stats wrap to a second line, a long symbol or name truncates; nothing passes the parent's edge
  • card with high and low: the day's range replaces the 24h high and low figures; volume stays a figure
  • pointed at or focused within: the 24h move in money ("+1,512.30") arrives beside the percent; laid out at rest, so nothing moves; always shown on touch and under data-reveal="always"

Keyboard

  • Read-only.

Motion

A moved price tints in its direction's colour and fades over 600ms; its arrow and colour stay until the next move. Nothing slides or counts. A new sign of the 24h change eases the chip's tint and ink (--pui-motion-out); going stale eases the price to the secondary ink and fades the stale chip in. Reduced motion: no tint fade, values still update. The 24h move in money is the shared reveal: it arrives at once with attention and leaves over --pui-motion-out.

Props

PropTypeDefaultDescription
symbol (required)string—
price (required)number | null—
changenumber | null (fraction)—24h change as a fraction.
high / low / volumenumber | null—
history(number | null)[]—Recent closes, oldest first: a mini trend beside the symbol (card) or after the change (bar).
decimalsnumber—
layout'bar'|'card'—`bar` = one line of stats for a terminal header; `card` = stacked for a watch tile.
staleReactNode—Caller-owned stale description, e.g. "Stale · 12s": shown as a chip beside the price, which stays readable.
style / refCSSProperties / native Ref—style: Inline styles on the documented visual root; no overrides by default. ref: Receives the documented native target or imperative handle; omitted by default.
classNamesPriceTickerClassNames—Classes for the named visual parts; no overrides by default.
namestring—
highnumber | null—
lownumber | null—
volumenumber | null—
classNamestring—Classes on the documented visual root; no override by default.
styleCSSProperties—Inline styles on the documented visual root; no overrides by default.
refRef<HTMLDivElement>—Receives the documented native target or imperative handle; omitted by default.

Built from

Used in

Import

import { PriceTicker } from "@beamline/price-ticker";

Get it

Price ticker is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Get Beamline · Connect your agent

More in Trading

  • Price chart: Candles, line or area price chart with volume, OHLC legend and reference lines, built for live ticks.
  • Market heatmap: Treemap of markets sized by weight and coloured by change, grouped by sector, with hatched no-data tiles.
  • Order book: Asks, spread and bids with cumulative depth bars, grouping, change flashes and keyboard price picking.
  • Options chain: Calls and puts for one expiry around a centre column of strikes: bid, ask, implied volatility, delta, volume and open interest, the money shaded in, a…
  • Depth chart: Cumulative bid and ask depth as stepped areas around the mid, with hover readout.
  • Ticker tape: A continuously scrolling row of symbols with price, change and mini trend; anyone can hold it: hover, keyboard focus or a tap.
  • Watchlist: A selectable, sortable list of markets with mini trends, prices, changes and stars.
  • Trades tape: Recent trades, newest first, with side glyphs, large-print marking and one-time arrival flashes.
  • Order ticket: Buy/sell order entry with limit, market and stop types, % of balance, inline validation and a live cost summary.
  • Swap form: Exchange one token for another: type what you pay (or Max), pick each token from a searchable list with balances, and the form quotes what you receive…
  • Positions table: Open positions with live unrealised PnL, liquidation warnings and close actions.
  • P&L calendar: A trader's month at a glance: every trading day's profit or loss in its cell, shaded deeper the bigger it was in the gain or loss colour and marked ▲ or…
  • Funding countdown: Perpetual funding rate with who pays, and a live countdown ring to the next funding.

Part of Beamline UI: polished, editable React components and complete screens for custom applications. Build your own style from any look; tokens, fonts, radii, motion; not only colours.