Skip to content
Calm motion: animations on this site only fade, with no movement

Price ticker ​

Prices that move across the screen, with the change of each

Shows the latest prices of stocks, coins, or products in a line that scrolls. It uses the marquee, so it has a Pause button and stops while the pointer is over it.

Basic
HMST $1,840.00 +2.35%RDIO $412.50 -1.10%MICS $96.20 +0.40%WAVE $2,210.00 -3.05%CAST $58.75 0.00%LOUD $731.00 +5.60%
  • items is a list of prices. Each item has a symbol, a price, and a change in percent.
  • Each change has an arrow and a sign: ▲ and "+" for a rise, ▼ and "−" for a fall, and ■ for no change. A fall is also red, but the arrow and the sign carry the meaning.
  • With currency, the price shows in that currency. Without it, the price is a plain number with two decimals. locale sets the format.
  • speed sets the speed in pixels per second (default 40). If the reader asks for reduced motion, the line does not move.
  • The ticker is a region with the name "Prices". Change it with labels or a label pack: title. The Pause and Play words come from the marquee.

Usage ​

ts
import { BlessPriceTicker } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
items*BlessTick[]—
currencystring—ISO 4217 code; without it, the price is a plain number
localestring"en"
speednumber40px per second
labelsPartial<{ title: string; }>—

Released under the MIT License. Character names and artwork belong to their owners.