# Marketing Announcement Banner: With Action

A banner pairing a short message with a button so readers can act at once. Use it to drive signups, trial starts, or a link to a new release.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/with-action
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing), Free tier
- Group: [Announcement Banners](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/with-action.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-announcement-banners-with-action
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/marketing-announcement-banners-with-action.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/marketing/announcement-banners/with-action`

## About this block

With Action is a full-width top-of-page banner. A solid primary bar spans
the viewport and inside it a single row holds a short message on the left
and a small ghost button on the right. The message uses a bold event name
followed by a separator dot and a plain sentence of supporting copy. The
button carries a label and a right-pointing arrow icon to signal a next
step.

The two sides of the row reflow to stack on narrow screens while staying
side by side on wider ones. The message copy, button label, and the event
name are all independent pieces you can swap freely. The banner has no
dismiss control by design, so it persists as visitors scroll down the
page.

## When to use

Reach for this block when you need readers to take one specific action
right now, not just read a notice. It suits an AI assistant product
announcing a new model release, a public beta opening, or a waitlist
launch where a single prominent call to action matters more than layered
detail. Compared to the simple centered bar, this layout draws the eye
to the button rather than purely to the message, which lifts click
rates when the goal is conversion over awareness.

A natural flow around it on a Marketing (Legacy) page:

**Before**

- A short hero to set context for the announcement
- [Hero Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections) to anchor the page
  before the banner appears at the top of a subpage

**After**

- [Feature Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/feature-sections) to expand on
  what the announcement covers once readers scroll past the banner
- [CTA Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/cta-sections) to close the page
  with a second conversion moment for anyone who missed the banner

## What you can display

The block is built around one message and one action, so every word
earns its place. A few ways to fill that frame:

- **A product launch prompt.** Name the release in bold, add a sentence
  of context, and point the button at a changelog or feature page.
- **An event registration push.** Use the bold slot for the event name,
  the sentence for the date and location, and the button to open the
  registration form.
- **A limited access invite.** Announce that a beta or early access
  window is open and send the button straight to a signup flow.

> Tip: keep the message under twelve words so the button stays on the
> same visual line as the text on most screen sizes.

## More in Marketing Announcement Banners

- [Floating](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/floating)
- [Simple Centered](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/simple-centered)
- [With Countdown](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/with-countdown)
- [With Image](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/with-image)
- [With Social Proof](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/with-social-proof)
