Announcement Bar

AnnouncementBar component to display message

Anatomy

Import and assemble the component:

1import { AnnouncementBar } from '@raystack/apsara'
2
3<AnnouncementBar />

API Reference

Renders a dismissible banner for announcements and alerts.

Prop

Type

Accessibility

  • The action (when actionLabel or actionIcon is provided) is rendered as a real <button>, so it's focusable, reachable by Tab, and activated by Enter/Space — not as a <Text> with an onClick handler.
  • The action button exposes a focus ring via :focus-visible.
  • Decorative leadingIcon and actionIcon are marked aria-hidden="true" so they don't add noise to screen readers.