Explore Templates

Alerts

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages, check out documentation.

Default alerts

Alerts are available for any length of text, as well as an optional dismiss button. For proper styling, use one of the eight variants.

Inverse alerts

Add inverse props to change the appearance of an alert.

Custom alerts

Add modifier class to change the appearance of an alert.

Border alerts

Add .alert-border-* modifier class to change the appearance of an alert and use variant="white" in <Alert>.

Link color

For links, use the <Alert.Link> component to provide matching colored links within any alert.

Additional content

Alerts can contain whatever content you like. Headers, paragraphs, dividers, go crazy.

Dismissing

Add the dismissible prop to add a functioning dismiss button to the Alert.

Alerts with icon

Add .alert-wth-icon class to quickly create fancy alerts with icons.

Rounded alerts

Use rounded prop in <HkAlert> for rounded border.