Alert

Examples

Success Alert

Success: Success notification title

Success notification description. This is a link.

Success: Success notification title

Success: Success notification title

Copied to clipboard

Danger Alert

Danger: Danger notification title

Danger notification description. This is a link.

Danger: Danger notification title

Danger: Danger notification title

Copied to clipboard

Warning Alert

Warning: Warning notification title

Warning notification description. This is a link.

Warning: Warning notification title

Warning: Warning notification title

Copied to clipboard

Info Alert

Info: Info notification title

Info notification description. This is a link.

Info: Info notification title

Info: Info notification title

Copied to clipboard

Alert Props

The Alert component accepts the following props.

NameTypeRequiredDefaultDescription
variant
enum: success, danger, warning, info
Adds Alert variant styles
action
node
nullAction button to put in the Alert
title
string
''Title of the Alert
children
node
''content rendered inside the Alert
className
string
''additional classes added to the Alert
aria-label
string
undefinedAdds accessible text to the Alert
variantLabel
string
nullVariant label text for screen readers