Alerts are used to communicate important information to the user. They can be used to inform users about service changes, provide feedback to user actions or communicate general information. Alerts should be short, clear and easy to understand. Icons and colour should be used to help convey content and urgency. The alert will expand to the width of the content, up until the width of its parent element, at which point it will wrap.
npm install @nib-components/alert
import Alert from '@nib-components/alert';
Important Information about you cover
|string||Can be one of |
|string||The alert title.|
|boolean||To set the alert to span the full width of its parent container.|
|node||The rest of the contents of the alert, — the "message".|
Colour and icons are used to help convey the content and urgency of the alert.
Avoid using colour alone as people with visual acuity or colour blindness may skip over this important information. This is why we use icons too.
type prop provides a number of Alert variations, each conveying a different meaning to the user.
Your last name is missing.
All alerts should have a title, which should be short and descriptive.
An alert message is optional and if included should also be short and descriptive. An alert message can include links that redirect the user to further information or next steps.