CodeAI

Notification Banner

Persistent page-level banner with title, description, icon, and optional actions. Expanded cousin of Alert.

Appearance

Content

Layout & behavior

Props — NotificationBanner
View MUI docs
PropTypeDescription
sentiment"brand" | "pink" | "success" | "error" | "warning" | "info" | "neutral"Semantic color theme and default icon.
fillStyle"none" | "color"none = white surface; color = tinted fill.
titleReactNodeBanner headline.
descriptionReactNodeSupporting detail text.
iconNameFaIconNameOverride default sentiment icon.
hasPrimaryActionbooleanShow primary action button.
hasSecondaryActionbooleanShow secondary action button.
primaryActionLabelReactNodePrimary action button label.
secondaryActionLabelReactNodeSecondary action button label.
onPrimaryAction() => voidPrimary action click handler.
onSecondaryAction() => voidSecondary action click handler.
isDismissiblebooleanShow dismiss control.
onClose() => voidDismiss handler.
fullWidthbooleanStretch to container width.