Alert

Visual Effects

Animated alert banner with four variants (info, success, warning, error), contextual icons, optional title, dismissible with exit animation.

Loading preview...
Customize
Variant:
Title
Content
Dismissible

Props

PropTypeDefaultDescription
variant'info' | 'success' | 'warning' | 'error''info'Visual style variant of the alert.
titlestringundefinedBold title text at the top of the alert.
childrenReact.ReactNodeundefinedAlert body content.
dismissiblebooleanfalseShow a dismiss (X) button.
onDismiss() => voidundefinedCallback when the alert is dismissed.
classNamestring''Additional CSS classes.