-
Notifications
You must be signed in to change notification settings - Fork 2
Alert Info
brandonk1234 edited this page Dec 5, 2016
·
1 revision
This component describes specific styling for success, warning and error messages, an example of this being put in good use would be if a user has put in their password incorrectly. You could display an error message to make them aware of this.
The props needed for this component are listed and explained below:
-
icon
- This prop must be astring
and will add the classname of icon-[icon], e.g. "icon-star" -
type
- This prop must be astring
. You have the ability to add a type of warning, info and success. -
text
- This prop must be astring
. This is the message that will displayed.
<AlertInfo
type="warning"
icon="cloud-crossed"
text="Your changes have not been saved"
/>,
<AlertInfo
type="info"
icon="cloud-sync"
text="Saving your changes"
/>,
<AlertInfo
type="success"
icon="cloud-check"
text="All changes have been saved"
/>