Format Number
Used to format numbers to a specific locale and options
downloads per month
Usage
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 { Format } from '@ark-ui/react'
Examples
Basic
Use the Format.Number component to format a number with default options.
Example not foundExample not foundExample not foundExample not foundPercentage
Use the style="percent" prop to format the number as a percentage.
Example not foundExample not foundExample not foundExample not foundCurrency
Use the style="currency" prop along with the currency prop to format the number as a currency.
Example not foundExample not foundExample not foundExample not foundLocale
Use the locale prop to format the number according to a specific locale.
Example not foundExample not foundExample not foundExample not foundUnit
Use the style="unit" prop along with the unit prop to format the number with a specific unit.
Example not foundExample not foundExample not foundExample not foundCompact Notation
Use the notation="compact" prop to format the number in compact notation.
Example not foundExample not foundExample not foundExample not found