/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/data/material/getting-started/templates/dashboard/components/HighlightedCard.js
41 строка
1 KB
Brijesh Bittu
[code-infra] Remove React import requirement for jsx (#47146)
29 окт 2025, 20:55
Не верифицирован
29 окт 2025, 20:55
6c9e82f
Код
Авторство
О чём код?
import Card from '@mui/material/Card'; import CardContent from '@mui/material/CardContent'; import Button from '@mui/material/Button'; import Typography from '@mui/material/Typography'; import ChevronRightRoundedIcon from '@mui/icons-material/ChevronRightRounded'; import InsightsRoundedIcon from '@mui/icons-material/InsightsRounded'; import useMediaQuery from '@mui/material/useMediaQuery'; import { useTheme } from '@mui/material/styles'; export default function HighlightedCard() { const theme = useTheme(); const isSmallScreen = useMediaQuery(theme.breakpoints.down('sm')); return ( <Card sx={{ height: '100%' }}> <CardContent> <InsightsRoundedIcon /> <Typography component="h2" variant="subtitle2" gutterBottom sx={{ fontWeight: '600' }} > Explore your data </Typography> <Typography sx={{ color: 'text.secondary', mb: '8px' }}> Uncover performance and visitor insights with our data wizardry. </Typography> <Button variant="contained" size="small" color="primary" endIcon={<ChevronRightRoundedIcon />} fullWidth={isSmallScreen} > Get insights </Button> </CardContent> </Card> ); }