mui / mui/base-ui

[all components][i18n] Export formatNumber utilities

Open
#2,277 5 comments 1 reaction 0 assignees View on GitHub
component: number field i18n scope: all components type: new feature
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

# Feature request

## Summary

`formatNumber` utilities should be exported. Whilst the user can write their own format function, exporting these utilities ensure that number formatting works exactly like `NumberInput` and users benefit from some niceties such as formatter caching.

## Examples in other libraries

N/A

## Motivation

This is useful for when users need to display number input values in a separate "review" section.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.