/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/data/material/components/alert/DescriptionAlerts.js
26 строк
826 B
Brijesh Bittu
[code-infra] Remove React import requirement for jsx (#47146)
29 окт 2025, 20:55
Не верифицирован
29 окт 2025, 20:55
6c9e82f
Код
Авторство
О чём код?
import Alert from '@mui/material/Alert'; import AlertTitle from '@mui/material/AlertTitle'; import Stack from '@mui/material/Stack'; export default function DescriptionAlerts() { return ( <Stack sx={{ width: '100%' }} spacing={2}> <Alert severity="success"> <AlertTitle>Success</AlertTitle> This is a success Alert with an encouraging title. </Alert> <Alert severity="info"> <AlertTitle>Info</AlertTitle> This is an info Alert with an informative title. </Alert> <Alert severity="warning"> <AlertTitle>Warning</AlertTitle> This is a warning Alert with a cautious title. </Alert> <Alert severity="error"> <AlertTitle>Error</AlertTitle> This is an error Alert with a scary title. </Alert> </Stack> ); }