/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/data/system/typography/FontWeight.js
14 строк
485 B
Brijesh Bittu
[code-infra] Remove React import requirement for jsx (#47146)
29 окт 2025, 20:55
Не верифицирован
29 окт 2025, 20:55
6c9e82f
Код
Авторство
О чём код?
import Typography from '@mui/material/Typography'; import Box from '@mui/material/Box'; export default function FontWeight() { return ( <Typography component="div"> <Box sx={{ fontWeight: 'light', m: 1 }}>Light</Box> <Box sx={{ fontWeight: 'regular', m: 1 }}>Regular</Box> <Box sx={{ fontWeight: 'medium', m: 1 }}>Medium</Box> <Box sx={{ fontWeight: 500, m: 1 }}>500</Box> <Box sx={{ fontWeight: 'bold', m: 1 }}>Bold</Box> </Typography> ); }