Skip to content

Price

Stable

A live price that tints briefly and shows an arrow for its last change.

Also known as price tag, quote, live price

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Simulated feed

Sample price: ₹2,480.50

A random walk every 1.2 seconds. Press Start to see the tint and the arrow.

When to use it

Shows a number that keeps changing, and makes each change easy to notice without relying on colour.

Made of: Hidden label · Direction arrow · Number · Hidden live region (optional)

Use it for

  • A share price or rate that updates while the page is open.
  • A live balance or quote inside a card or a table row.
  • Any number where the last move up or down matters.

Not for

  • A fixed amount that does not change: use Money.
  • A headline number with a trend and a comparison: use StatTile.
  • The shape of change over time: use Sparkline.

Do and avoid

RELIANCERELIANCE price: ₹2,945.50Up +0.42%
Do. A price that moves, with its change shown in signs and arrows.
Invoice totalInvoice total: ₹4,200.00
Avoid. A fixed bill in ticker style looks like it might change.

Do

  • Give it a label so the number has a name.
  • Keep the arrow on. It is the cue that works without colour.
  • Set the currency and locale when the price is not in rupees.

Avoid

  • Do not use it for amounts that never change. Use Money.
  • Do not turn announce on for every row of a table.
  • Do not rely on the tint to show direction.

On a phone

  • It never wraps and keeps the number on one line, so make sure its container is wide enough for the longest price.
  • It has no hover or tap behaviour. The brief colour flash on a change is the same on a phone.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started