# Announcement Bar

> Render a compact launch, promo, or update strip.

Canonical HTML: https://press.varavel.com/docs/shortcodes/announcement-bar/
Markdown: https://press.varavel.com/docs/shortcodes/announcement-bar/index.md

`announcement_bar` renders a compact bordered strip for important updates without taking over the page.

## When to Use

Use it above or between sections for launches, limited-time notices, migration messages, or release updates.

## Usage

```markdown
{{/* announcement_bar(label="New", text="Version 2 is available", href="/docs", link_text="Read docs") */}}
```

## Live Example

{{ announcement_bar(
label="New",
text="The landing shortcode library now includes production-ready proof, product, and conversion sections.",
href="/docs/shortcodes/",
link_text="Browse shortcodes"
) }}

## Parameters

| Parameter   | Description                                     |
| ----------- | ----------------------------------------------- |
| `container` | Inner content width.                            |
| `icon`      | Optional leading icon. Defaults to `megaphone`. |
| `label`     | Short emphasized label before the copy.         |
| `text`      | Announcement copy.                              |
| `href`      | Optional URL for the trailing link.             |
| `link_text` | Link label. Defaults to `Learn more`.           |
| `bg`        | Full-width section background token.            |
| `class`     | Additional CSS classes on the outer section.    |
