Overview
The AlertBanner component displays brief alert messages in a horizontal banner format, perfect for notifications, announcements, or status messages.Basic Usage
Props
Type/style of the alert banner.Available choices:
default- Colorless background, colored icon & textoutlined- Light colored background with outlinefilled- Colored background with white text
Variant/color theme of the alert banner.Available choices:
primary, success, warning, error, defaultIcon to display. Use
auto to automatically select based on variant.Content to display in the banner.
Custom padding for the banner. Defaults to
var(--spacing-4px, 4px) var(--spacing-8px, 8px) if action buttons/close button are present, else var(--spacing-8px, 8px).Content alignment.Available choices:
center, space-between, space-aroundShow a close button in the banner.
Callback function when the close button is clicked.
Array of action button configurations.
CSS position property.Available choices:
static, fixed, absolute, relativeTop position value (useful for fixed positioning).
Bottom position value.
Left position value.
Right position value.
Additional CSS class name.