Announcement banner preview
A responsive site announcement with native actions, optional consumer-owned dismissal, and opt-in text-only live updates.
pro · Feedback · composite
When to use
- Use it when a page needs a responsive site announcement with native actions, optional consumer-owned dismissal, and opt-in text-only live updates.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose alert instead when inline notices with icons, actions and optional dismissal is the actual interface need, rather than announcement banner.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/announcement-bannerImport components/ui/tidal.css, components/ui/announcement-banner.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/announcement-banner.css";
import{TidalAnnouncementBanner}from"./components/ui/announcement-banner";
export default()=><div className="tidal-scope"><TidalAnnouncementBanner description={"Demo"} label={"Demo"} title={"Demo"}/></div>;API and props
TidalAnnouncementBanner.description (required)ReactNodeRequired description value accepted by this exported component.
TidalAnnouncementBanner.label (required)stringRequired label value accepted by this exported component.
TidalAnnouncementBanner.title (required)stringRequired title value accepted by this exported component.
TidalAnnouncementBanner.actionsReadonlyArray<TidalAnnouncementAction> | undefinedOptional actions value accepted by this exported component.
TidalAnnouncementBanner.actionsLabelstring | undefinedOptional actions label value accepted by this exported component.
TidalAnnouncementBanner.announce"assertive" | "polite" | undefinedOptional announce value accepted by this exported component.
TidalAnnouncementBanner.announceTextstring | undefinedOptional announce text value accepted by this exported component.
TidalAnnouncementBanner.badgeReactNodeOptional badge value accepted by this exported component.
TidalAnnouncementBanner.dismissButtonPropsNativeButtonProps | undefinedOptional dismiss button props value accepted by this exported component.
TidalAnnouncementBanner.dismissButtonRefRef<HTMLButtonElement> | undefinedOptional dismiss button ref value accepted by this exported component.
TidalAnnouncementBanner.dismissDisabledboolean | undefinedOptional dismiss disabled value accepted by this exported component.
TidalAnnouncementBanner.dismissLabelstring | undefinedOptional dismiss label value accepted by this exported component.
TidalAnnouncementBanner.headingLevelHeadingLevel | undefinedOptional heading level value accepted by this exported component.
TidalAnnouncementBanner.iconReactNodeOptional icon value accepted by this exported component.
TidalAnnouncementBanner.onDismiss((event: React.MouseEvent<HTMLButtonElement>) => void) | undefinedCallback invoked when the dismiss interaction is proposed.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.