---
banner:
content: "๐ Version 2.0 is here! <a href='/migration'>Read the migration guide</a>."
---Overview
The Banner component renders a full-width notification bar at the top of the page. It supports HTML content and is controlled through frontmatter.
Props
| Prop | Type | Description |
|---|---|---|
content | string | HTML content rendered inside the banner |
Features
- Renders raw HTML, so you can include links, bold text, etc.
- Sits above the header in the page layout
- Has
data-pagefind-ignoreto exclude from search indexing - Styled with the
.sl-bannerclass - Only renders when
contentis provided (conditional display)
Example Content
banner:
content: "Welcome to the new docs! <a href='/docs/getting-started/'>Get started here</a>."
Styling
The banner uses the following CSS classes:
.sl-bannerโ Main container with background color and padding- Content is injected via
innerHTMLfor HTML support