/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/data/material/components/skeleton/Variants.js
15 строк
570 B
Brijesh Bittu
[code-infra] Remove React import requirement for jsx (#47146)
29 окт 2025, 20:55
Не верифицирован
29 окт 2025, 20:55
6c9e82f
Код
Авторство
О чём код?
import Skeleton from '@mui/material/Skeleton'; import Stack from '@mui/material/Stack'; export default function Variants() { return ( <Stack spacing={1}> {/* For variant="text", adjust the height via font-size */} <Skeleton variant="text" sx={{ fontSize: '1rem' }} /> {/* For other variants, adjust the size with `width` and `height` */} <Skeleton variant="circular" width={40} height={40} /> <Skeleton variant="rectangular" width={210} height={60} /> <Skeleton variant="rounded" width={210} height={60} /> </Stack> ); }