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.jsonOr, 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
| Prop | Type | Default | Notes |
|---|---|---|---|
messages | Announcement[] | DEFAULT_ANNOUNCEMENTS | { tag?, text, href?, cta? } |
interval | number | 4500 | ms per message. |
dismissible / onDismiss | boolean / () => void | true | Show the close button. |
Dependencies
motionlucide-react
Related Website Sections components
- 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.