---
title: "Banner"
description: "Informational banner with tones. Wraps the Polaris <s-banner> web component."
canonical_url: "https://shopify.yan.ad/components/feedback/banner"
---
# Banner

> Informational banner with tones. Wraps the Polaris <s-banner> web component.

## Live preview

<polaris-preview example="banner">



</polaris-preview>

## Props

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        heading
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Banner heading
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        tone
      </code>
    </td>
    
    <td>
      <code>
        'info' | 'success' | 'warning' | 'critical' | 'auto'
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Color tone
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        hidden
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Hides the banner
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        dismissible
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Shows a dismiss button
    </td>
  </tr>
</tbody>
</table>

## Slots

<table>
<thead>
  <tr>
    <th>
      Slot
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      Banner content
    </td>
  </tr>
</tbody>
</table>

## Polaris Element

Renders as `<s-banner>`. See [Polaris Banner docs](https://shopify.dev/docs/api/app-home/web-components/feedback/banner).


## Sitemap

See the full [sitemap](https://shopify.yan.ad/sitemap.md) for all pages.
