Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages, check out documentation.
Alerts are available for any length of text, as well as an optional dismiss button. For proper styling, use one of the eight variant
s.
Add inverse
props to change the appearance of an alert.
Add modifier class to change the appearance of an alert.
Add .alert-border-*
modifier class to change the appearance of an alert and use variant="white"
in <Alert>
.
For links, use the <Alert.Link>
component to provide matching colored links within any alert.
Alerts can contain whatever content you like. Headers, paragraphs, dividers, go crazy.
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.
You have successfully completed level 1.
Add the dismissible
prop to add a functioning dismiss button to the Alert.
Add .alert-wth-icon
class to quickly create fancy alerts with icons.
Use rounded
prop in <HkAlert>
for rounded border.