Put a title, an action link, and a close button in the bar, so people read the news and can hide it.
launch-bar.tsx
AnnouncementBar
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| aria-label | string | — | Defines a string value that labels the current element. The name of the region for screen readers. Default "Announcement". Translate it. |
| nonce | string | — | The CSP nonce of the page, for the inline script that hides a stored dismiss before the first paint (dismissKey). Pass it when your Content Security Policy allows scripts by nonce, as the nonce of next-themes. |
| align | "center""start" | "center" | |
| size | "default""lg""sm" | "default" | |
| sticky | boolean | false | |
| variant | "default""destructive""info""inverse""muted""success""warning" | "default" | |
| ref | Ref<HTMLElement> | — | The region element (<section>). |
| dismiss | string | — | Remembers a dismiss in localStorage under this key, so the bar stays closed on the next visit and in other tabs. Use a new key for a new message ("launch-2026-11"). A controlled bar (open) does not read it: the page decides. |
| default | boolean | true | Whether the bar shows at first. |
| on | — | Called when the bar opens or closes (false after a dismiss). | |
| class | string | — | Classes for the bar, the part that you see. |
| labels | — | The words of the parts (ANNOUNCEMENT_BAR_LABELS). Translate them. Keep the object stable. | |
From Base UICollapsible.RootBase UI docs | |||
| open | boolean | — | Whether the collapsible panel is currently open. To render an uncontrolled collapsible, use the defaultOpen prop instead. |
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>. |
AnnouncementBarBadge
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
AnnouncementBarTitle
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
AnnouncementBarDescription
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
AnnouncementBarAction
<a>| Prop | Type | Default | Description |
|---|---|---|---|
| arrow | boolean | true | Show the arrow after the text. It moves 2px on hover and points the other way in RTL. |
| stretched | boolean | false | Make the whole bar the link (a ::after over the bar). Use it when the action is the only link; the close button stays on top. |
From Base UIUseRenderBase UI docs | |||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| ...props | <a> attributes | — | Every other attribute goes to the <a>, with a ref. |
AnnouncementBarClose
<button>| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | "Dismiss announcement" | The name of the button for screen readers. Translate it. |
| ...props | <button> attributes | — | Every other attribute goes to the <button>, with a ref. |
AnnouncementBarCountdown
<time>| Prop | Type | Default | Description |
|---|---|---|---|
| to | string | number | Date | — | The end: a Date, a time in ms, or a date string ("2026-11-30T23:59:00Z"). |
| locale | LocalesArgument | — | The language of the units ("2d 04h", "2j 04h") and of the default label. The browser language by default, which can differ from the page: pass the page language. |
| label | defaultCountdownLabel | The name for screen readers, from the end date. Translate it. | |
| on | — | Called once when the time is up (also when the end is already past). | |
| dismiss | boolean | false | Close the bar when the time is up (and remember it with dismissKey). |
| ...props | <time> attributes | — | Every other attribute goes to the <time>, with a ref. |
AnnouncementBarRotator
<section>| Prop | Type | Default | Description |
|---|---|---|---|
| interval | number | 5000 | Time on each message in ms. 0 turns the rotation off. |
| index | number | — | The message that shows (controlled). A turn or a button press calls onIndexChange. |
| default | number | 0 | The message that shows first (uncontrolled). |
| on | — | Called when another message shows. | |
| controls | boolean | true | Show the previous and next buttons. |
| label | string | "Announcements" | The names for screen readers. Translate them. |
| slide | defaultSlideLabel | ||
| ...props | <section> attributes | — | Every other attribute goes to the <section>, with a ref. |
AnnouncementBarItem
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| Tab | Moves to the action, the rotator buttons, and the close button. |
|---|---|
| Enter | Opens the action link, or closes the bar from the close button. |
- AnnouncementA small rounded link above a hero headline that points to news, such as a launch post. A light can run around its border for a big launch.
- AlertPick Alert for a message about one part of a page, such as an error in a form.
- CountdownThe time left until a date, as short text or as boxes, a line, or large digits. It can pause, and it shows your text when the time runs out.





