apps/www/content/docs/components/format-number.mdx
The number formatting logic is handled by the native Intl.NumberFormat API and
smartly cached to avoid performance issues when using the same locale and
options.
import { FormatNumber } from "@chakra-ui/react"
<FormatNumber value={1000} />
Use the style=percentage prop to change the number format to percentage.
Use the style=currency prop to change the number format to currency.
Wrap the FormatNumber component within the LocaleProvider to change the
locale.
Use the style=unit prop to change the number format to unit.
Use the notation=compact prop to change the number format to compact notation.
The FormatNumber component supports all Intl.NumberFormat options in
addition to the following props: