Component packs › Odo › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
name | string | Product name. | |
price | number | 120 | Current price (whole units). Default 120. |
currency | string | "£" | Currency sign. Default "£". |
readonly price: numbersetPrice(price: number): void: Re-marks to a new whole price.destroy(): voidimport PriceChange from './PriceChange';
<PriceChange />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Number counters.