Components
AnnouncementBar
Dismissible top-of-page announcement bar with optional icon, badge, and link.
Import
import { AnnouncementBar } from "@sigil-ui/components";Preview
Usage
<AnnouncementBar message="v2.0 is now available" />With badge and link
<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
| Prop | Type | Default | Description |
|---|---|---|---|
icon | ReactNode | — | Leading icon |
badge | string | — | Small label badge |
message | string | — | Announcement text |
href | string | — | Link URL (makes the bar clickable) |
dismissible | boolean | true | Show dismiss button |
className | string | — | Additional CSS classes |