React Alert is prepared for any length of text, as well as an optional close button. For a styling, use one of the required contextual color
props (e.g., primary
). For inline dismissal, use the dismissing prop.
Use the <CAlertLink>
component to immediately give matching colored links inside any alert.
Alert can also incorporate supplementary components & elements like heading, paragraph, and divider.
Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
Whenever you need to, be sure to use margin utilities to keep things nice and tidy.
Alerts can also be easily dismissed. Just add the dismissible
prop.