Behive Tech Component Registry

Price

v0.1.0Draft

Formatted US dollars from an integer amount of cents, rendered in a data element with a plain decimal value, in three sizes.

pnpm add @behivetech/atoms.price

The default md size, formatted from integer cents.

Basic PriceOpen in new tab

Every size: sm for list meta, md for checkout lines, lg for detail pages and totals.

Price SizesOpen in new tab

The amount is formatted in the given locale; the value attribute stays a plain decimal.

Price LocaleOpen in new tab