diff --git a/docs/data/material/components/material-icons/SearchIcons.js b/docs/data/material/components/material-icons/SearchIcons.js index 80e83fc1983b20..204d5cbaefad87 100644 --- a/docs/data/material/components/material-icons/SearchIcons.js +++ b/docs/data/material/components/material-icons/SearchIcons.js @@ -404,6 +404,10 @@ const Paper = styled(MuiPaper)(({ theme }) => ({ width: '100%', })); +function formatNumber(value) { + return new Intl.NumberFormat('en-US').format(value); +} + const Input = styled(InputBase)({ marginLeft: 8, flex: 1, @@ -558,7 +562,9 @@ export default function SearchIcons() { inputProps={{ 'aria-label': 'search icons' }} /> - {`${icons.length} matching results`} + {`${formatNumber( + icons.length, + )} matching results`}