/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/data/material/components/alert/BasicAlerts.tsx
13 строк
453 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 Stack from '@mui/material/Stack'; export default function BasicAlerts() { return ( <Stack sx={{ width: '100%' }} spacing={2}> <Alert severity="success">This is a success Alert.</Alert> <Alert severity="info">This is an info Alert.</Alert> <Alert severity="warning">This is a warning Alert.</Alert> <Alert severity="error">This is an error Alert.</Alert> </Stack> ); }