Component libraryAnnouncement banner
Components/Feedback

Announcement banner

Pro

A responsive site announcement with native actions, optional consumer-owned dismissal, and opt-in text-only live updates.

npx shadcn@latest add @tidal-pro/announcement-banner
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/announcement-banner

Import components/ui/tidal.css, components/ui/announcement-banner.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

label, title and description define the named announcement region and visible copy. headingLevel defaults to h2. Optional badge and decorative icon preserve numeric zero. actions is an ordered consumer-owned list of unique IDs and native button or real-anchor actions; each action supports visible label content, emphasis, disabled state, native attributes and the matching ref. Enabled anchors retain href, modifiers, download and target behavior, while action disabled or anchor aria-disabled true prevents navigation before the consumer handler. onDismiss opts into a native dismiss button with caller-first preventable buttonProps, label, disabled state and ref; visibility remains consumer-owned. Optional announceText creates a text-only polite or assertive live region without exposing actions. The source owns no timers, data, requests, navigation, focus, network or storage state.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.