Change the status of the alerts by passing the status prop. This affects the
color scheme and icon used. Alert supports error, success, warning, and
info statuses.
There was an error processing your request
Data uploaded to the server. Fire on!
Seems your account is about to expire, upgrade now!
Chakra is going live on August 30th. Get ready!
<Stackspacing={3}>
<Alertstatus="error">
<AlertIcon/>
There was an error processing your request
</Alert>
<Alertstatus="success">
<AlertIcon/>
Data uploaded to the server. Fire on!
</Alert>
<Alertstatus="warning">
<AlertIcon/>
Seems your account is about to expire, upgrade now!
Alert ships with smaller component to allow for flexibility and make it easy to
create all kinds of layout. Here's an example of custom alert style and layout.
Application submitted!
Thanks for submitting your application. Our team will get back to you soon.
<Alert
status="success"
variant="subtle"
flexDirection="column"
justifyContent="center"
textAlign="center"
height="200px"
>
<AlertIconsize="40px"mr={0}/>
<AlertTitlemt={4}mb={1}fontSize="lg">
Application submitted!
</AlertTitle>
<AlertDescriptionmaxWidth="sm">
Thanks for submitting your application. Our team will get back to you soon.