/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/data/system/typography/TextAlignment.js
16 строк
630 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 TextAlignment() { return ( <Typography component="div"> <Box sx={{ textAlign: 'justify', m: 1 }}> Ambitioni dedisse scripsisse iudicaretur. Cras mattis iudicium purus sit amet fermentum. Donec sed odio operae, eu vulputate felis rhoncus. </Box> <Box sx={{ textAlign: 'left', m: 1 }}>Left aligned text.</Box> <Box sx={{ textAlign: 'center', m: 1 }}>Center aligned text.</Box> <Box sx={{ textAlign: 'right', m: 1 }}>Right aligned text.</Box> </Typography> ); }