UNPKG

@etsoo/materialui

Version:

TypeScript Material-UI Implementation

15 lines (14 loc) 499 B
import { jsx as _jsx } from "react/jsx-runtime"; import { NumberUtils } from "@etsoo/shared"; import Typography from "@mui/material/Typography"; /** * Number text * @param props Props * @returns Component */ export function NumberText(props) { // Destruct const { locale, options = {}, value, ...rest } = props; // Layout return (_jsx(Typography, { component: "span", fontSize: "inherit", ...rest, children: value == null ? "" : NumberUtils.format(value, locale, options) })); }