Announcement Bar
AnnouncementBar component to display messageAnatomy
Import and assemble the component:
1import { AnnouncementBar } from '@raystack/apsara'23<AnnouncementBar />
API Reference
Renders a dismissible banner for announcements and alerts.
Prop
Type
Accessibility
- The action (when
actionLabeloractionIconis provided) is rendered as a real<button>, so it's focusable, reachable by Tab, and activated by Enter/Space — not as a<Text>with anonClickhandler. - The action button exposes a focus ring via
:focus-visible. - Decorative
leadingIconandactionIconare markedaria-hidden="true"so they don't add noise to screen readers.