Clay Alerts
Clay alerts come in two types: embedded and stripe. Both types, along with several examples of each, are shown below.
Embedded Alerts
Embedded alerts are usually used inside forms. The element that contains it determines an embedded alert’s width. The close action is not required for embedded alerts. The following embedded alerts can be created with Clay taglibs:
Danger alert (embedded):
Success alert (embedded):
Info alert (embedded):
Warning alert (embedded):
Stripe Alerts
Stripe alerts are placed below the last navigation element (either the header or the navigation bar), and they usually appear on Save action, communicating the status of the action once received from the server. Unlike embedded alerts, stripe alerts require the close action. A stripe alert is always the full width of the container and pushes all the content below it. The following stripe alerts can be created with Clay taglibs:
Danger alert (stripe):
Success alert (stripe):
Info alert (stripe):
Warning alert (stripe):
Now you know how to alert users!