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

This is the snapshot of v0.1.1, the current version, as recorded on 2026-11-10. The live page runs its examples →

Changelog up to v0.1.1

v0.1.1

Patch Changes

  • 8fe9fb4: Declare "sideEffects": ["**/*.css"] so a bundler can drop the package when its exports are unused. Packages that build class names depend on @behivetech/get-class-name (a real dependency, kept external) instead of bundling their own copy of the helper, so an app loads it once.
  • Updated dependencies [8fe9fb4]
    • @behivetech/get-class-name@0.1.0

v0.1.0

Minor Changes

  • c7d056f: Add the Price atom: formatted money from integer minor units with Intl.NumberFormat, a <data value> plain decimal, locale (default en-US) and sm/md/lg sizes.