Alert
Alert components provide a high degree of adaptability and can be tailored to match the aesthetic theme of your application. You can adjust the look of the alert (solid orsubtle), the status or category of the alert (information,success, warning, or error), and the presence of a close button. All these aspects contribute to making the Alert component an essential instrument in improving the user experience of your application.
These are the main parts of an Alert component.
Alert
: This is the container for the Alert components.AlertIcon
: This is the icon accompanying the alert, changing its appearance based on the status prop.AlertTitle
: This is the headline of the alert and it's read aloud by screen readers.AlertDescription
: This is the detailed explanation of the alert, which is also announced by screen readers.To import these components:
Examples
General Usage
Code
Status
Code
Code
Code
Code
Variants
Code
Code
Code
Code
Composition
Code
Adding a Close Button
Code
Did you know?
Creative Idea No. 2
Code
Creative Idea No. 1
Code
Creative Idea No. 3
Code
copyright © 2023 IHeartComponents | evanmarie.com
created with love by the I♥️Components team using
Special thanks to Stefan Bohacek / Generative Placeholders.