SuiAlert
Provide contextual feedback messages for typical user actions with the handful of available and flexible alerts/notifications.
The below codes are editable and you can modify them the way you want directly from your browser, please use the green button or the ctrl + s to save the changes.
Demo
// Soft UI Dashboard React components
import SuiAlert from "components/SuiAlert";
This is an alert!
Props Information
Name | Type | Default | Description |
---|---|---|---|
color | 'primary''secondary''info''success''warning''error''light''dark' | info | Change the SuiAlert background color. |
dismissible | bool | false | If true the SuiAlert will have a closing button for dismissing it. |
children* | node | Use to pass node or content inside the SuiAlert , its the only required prop. |
With Icon
// Soft UI Dashboard React components
import SuiAlert from "components/SuiAlert";
// @mui material components
import Icon from "@mui/material/Icon";
This is an alert with icon!
Dismissible
// Soft UI Dashboard React components
import SuiAlert from "components/SuiAlert";
This is a dismissible alert!
×