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

Published to npm.pkg.github.com

  • v0.1.1 · current
  • v0.1.0

Changelog

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.