sigilUI

Announcement Bar

Dismissible top-of-page announcement bar with optional icon, badge, and link.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { AnnouncementBar } from "@sigil-ui/components";

Usage

<AnnouncementBar message="v2.0 is now available" />
<AnnouncementBar
  badge="New"
  message="Sigil v2.0 ships with 46 presets and 350+ token-driven components"
  href="/blog/v2"
/>

With icon

<AnnouncementBar
  icon={<span>🚀</span>}
  message="We just launched on Product Hunt"
  href="https://producthunt.com"
/>

Non-dismissible

<AnnouncementBar message="Scheduled maintenance on Sunday" dismissible={false} />

Props

PropTypeDefaultDescription
iconReactNode—Leading icon
badgestring—Small label badge
messagestring—Announcement text
hrefstring—Link URL (makes the bar clickable)
dismissiblebooleantrueShow dismiss button
classNamestring—Additional CSS classes