Announcement bar

Pro

A top banner that grows open and pushes the page down smoothly, with messages that slide or flip in on a progress line that pauses on hover, or a seamless marquee, and a countdown slot.

A recording of the component itself. With Pro you get its full source and it runs in your app.

What you get

  • Height animates, so the page below slides with it
  • Slide or flip rotation, or a seamless marquee
  • Pauses on hover, focus, off screen and in background
  • Dismissal callback and a compact countdown
  • One TypeScript file in your project, yours to edit. No runtime package.
  • Keyboard, screen reader and reduced motion support; light and dark; your shadcn theme.

Install

npx shadcn@latest add @goodui-pro/announcement-bar

Needs a Pro license key in your registry config: two-minute setup. The file lands in components/goodui/announcement-bar.tsx.

More Pro components

Dynamic island

A black pill that hosts live activities and springs between shapes: compact, split with a bubble, and an expanded panel for a timer, music with a waveform, a call or a toast.

Pro

Gooey nav

Liquid navigation: the active blob stretches with its speed and trails a neck that thins and snaps, and menu items pinch off the main button through an SVG metaball filter.

Pro

Radial menu

A pie menu under the pointer: press, drag toward a slice and release. Slices swell as the pointer nears, and submenus fan out of their slice as a second ring.

Pro