# Banner

Announcement strip — semantic types, sanitised HTML content, optional persistent dismiss.

**Install:** `nimbus-docs add banner`  
**Source:** `src/components/ui/banner/`  
**Canonical:** https://nimbus-docs.com/components/banner/

## Agent payload (JSON)

```json
{
  "slug": "banner",
  "name": "Banner",
  "description": "Site-wide dismissible announcement bar.",
  "tagline": "Announcement strip — semantic types, sanitised HTML content, optional persistent dismiss.",
  "install": "nimbus-docs add banner",
  "sourcePath": "src/components/ui/banner/",
  "canonicalUrl": "https://nimbus-docs.com/components/banner/",
  "props": [
    {
      "name": "content",
      "type": "string",
      "required": true,
      "description": "HTML string (sanitised) rendered as the banner body."
    },
    {
      "name": "type",
      "type": "\"note\" | \"tip\" | \"caution\" | \"danger\"",
      "defaultValue": "\"note\"",
      "required": false,
      "description": "Visual treatment that conveys intent."
    },
    {
      "name": "dismissible",
      "type": "{ id: string; days?: number }",
      "required": false,
      "description": "Show a close button; persists dismissal to localStorage under the given id for the given number of days."
    }
  ],
  "registryDependencies": [
    "cn"
  ],
  "dependencies": []
}
```
