Alert
Announcement Banner
A full-width announcement bar: tag, message, link and dismiss. Dark and calm — it does not pretend to be an error.
React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.
What you can change
- tag — the short label on the left: "New", "Beta", a date
- message and children — the announcement copy
- actionLabel and actionHref — the action's label and destination
A link for your AI agent: preview, code and instructions.
Preview

Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.club/c/banner-001?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
How to use
<Banner001
tag="New"
message="The catalog now has form components."
actionLabel="Take a look"
actionHref="/components"
onDismiss={hideBanner}
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Tag
tag· default: New- Message
message· default: The catalog now has form components — fields, selects and switches.- Action
actionLabel· default: Take a look- Accent
accent· default: theme colour- Background
background· default: theme colour
More in Alert
FAQ
- How do I add Announcement Banner with Cursor or Claude Code?
- Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
- What does Announcement Banner depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Announcement Banner?
- Adapt: tag — the short label on the left: "New", "Beta", a date; message and children — the announcement copy; actionLabel and actionHref — the action's label and destination. Keep as installed: the local --vibeui-banner-001-* palette — do not swap it for your theme tokens: the bar is dark by design and only lightens in the dark branch so it does not merge with the page; the calm tone: an announcement must not look like an error, errors have the alert component; the @container query that moves the message to its own line: without it a narrow screen squeezes the words into a column.
- Is Announcement Banner free?
- Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.
For developers
npx shadcn@latest add https://vibeui.club/r/pro/banner-001.jsonThis command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options
Technical notes
The component is self-contained: one file, no dependencies, its own palette in the local --vibeui-banner-001-* variables. The glow on the left is a radial gradient from the accent, not a separate element. The close button appears only when onDismiss is provided: a bar that cannot be closed does not need a cross. At narrow widths the message moves to its own line through @container, while the tag and the action stay on one line.
Tags
- banner
- announcement
- top bar
- marketing
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…