AnnouncementBar (am-announcement-bar)
AnnouncementBar 是 marketing、SaaS 與商店頁面的公告列。它提供語意 tone、可選連結、dismiss control,以及 inline / sticky placement。
Contract
Section titled “Contract”message是必要的公告文案tone支援neutral、brand、success、warning、errordismissible會啟用內建的原生按鈕與關閉行為position支援inline、sticky-top、sticky-bottom- 可用
ariaLabel與 consumer 傳入的aria-live補充通知語意
<AnnouncementBar message="New documentation is available." action={{ label: "Read the notes", href: "/notes" }} tone="brand" dismissible={true} position="sticky-top"/>此元件不管理 cookie、會員偏好或後端公告狀態。詳見 playground /playground/marketing/。