Component packs › Odo › Price Change

Price Change

A line is drawn through the old price, the new one drops in with weight and settles, and the saving rolls up beside it.

Price Change is a price from Odo, a component pack with 6 number counters: Number counters on physical wheels: they carry like gears, spin through big jumps and settle. Price: $2 for the whole pack.

Built with: strike-through draw, weighted drop, rolling saving.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Price Change props

PropTypeDefaultDescription
namestringProduct name.
pricenumber120Current price (whole units). Default 120.
currencystring"£"Currency sign. Default "£".

Methods on the ref

Use it in React

import PriceChange from './PriceChange';

<PriceChange />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Odo

Good for: Number counters.