Announcement Bar

A slim ink top bar with a sweeping sheen; messages roll vertically with a blur, dots pick one, hover or focus pauses, and dismissing collapses the height smoothly.

Try it: Hover to pause, use the dots, or dismiss with ×.

Brings its own background. Paints its own ink gradient in both themes (an announcement strip); override with className.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/announcement-bar.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/announcement-bar. You can also copy the source into components/ui/announcement-bar.tsx (view on GitHub).

Usage

import { AnnouncementBar } from '@/components/ui/announcement-bar'

Props

Component props
PropTypeDefaultNotes
messagesAnnouncement[]DEFAULT_ANNOUNCEMENTS{ tag?, text, href?, cta? }
intervalnumber4500ms per message.
dismissible / onDismissboolean / () => voidtrueShow the close button.

Dependencies

  • motion
  • lucide-react
  • Changelog Timeline

    Release notes on a timeline with sticky dates, popping dots, generated cover art and a filter (All / New / Improved / Fixed) that re-flows each change list on springs.

  • Cookie Consent

    A floating glass consent card with equal-weight Accept / Reject (no dark patterns) and a Customise drawer of per-category switches that expands in place, plus a chip to reopen settings.

  • Glass App Dock

    A macOS-style dock: icons magnify on a spring with a cosine falloff around the pointer, labels float above, launching bounces the icon and lights a running dot. Keyboard focus magnifies too.

  • Site Footer

    A calm SaaS footer: link columns with sliding hairline underlines, a live status pill, socials, a language picker and a giant outlined wordmark that rises from the bottom edge.

  • Spotlight Command Palette

    A cmdk-style ⌘K launcher: fuzzy grouped results, a highlight that springs between rows, nested pages (Backspace to go back), key-cap hints and full combobox semantics with focus restore.

  • Newsletter Signup

    An inline email capture with inline validation, a button that morphs to a spinner, a shake on error, a polite live region and a success state with undo.

See all 14 Website Sections components