/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/data/material/components/paper/SquareCorners.js
20 строк
520 B
Brijesh Bittu
[code-infra] Remove React import requirement for jsx (#47146)
29 окт 2025, 20:55
Не верифицирован
29 окт 2025, 20:55
6c9e82f
Код
Авторство
О чём код?
import Stack from '@mui/material/Stack'; import Paper from '@mui/material/Paper'; import { styled } from '@mui/material/styles'; const DemoPaper = styled(Paper)(({ theme }) => ({ width: 120, height: 120, padding: theme.spacing(2), ...theme.typography.body2, textAlign: 'center', })); export default function SquareCorners() { return ( <Stack direction="row" spacing={2}> <DemoPaper square={false}>rounded corners</DemoPaper> <DemoPaper square>square corners</DemoPaper> </Stack> ); }