Sanity Library Reference Docs
    Preparing search index...

    Function useNumberFormat

    • Returns an instance of Intl.NumberFormat that uses the currently selected locale, and enables locale/language-sensitive number formatting.

      Parameters

      • options: NumberFormatOptions = {}

        Optional options for the number formatter

      Returns NumberFormat

      Instance of Intl.NumberFormat