Usage
With action button
With leading icon
Variants
With action icon
API reference
AnnouncementBar
string
required
The main text content of the announcement.
'normal' | 'gradient' | 'error'
default:"normal"
The visual style variant of the announcement bar.
ReactNode
An icon to display before the text.
string
Text label for the action button. If provided, renders an action button.
ReactNode
An icon to display in the action area. Can be used with or without actionLabel.
() => void
Callback fired when the action button or icon is clicked.
string
Additional CSS class for the announcement bar.