---
title: "EmptyState"
description: "Explain empty lists, tables, and unconfigured features with the Polaris s-empty-state component."
canonical_url: "https://shopify.yan.ad/components/feedback/empty-state"
---
# EmptyState

> Explain empty lists, tables, and unconfigured features with the Polaris s-empty-state component.

## Live preview

<polaris-preview example="empty-state">



</polaris-preview>

## Props

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

<tbody>
  <tr>
    <td>
      <code>
        heading
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Plain-text heading explaining the empty state.
    </td>
  </tr>
</tbody>
</table>

## Slots

Use the default Vue slot with native `slot` attributes on its children. This keeps the slotted components directly under `<s-empty-state>` without adding wrappers.

<table>
<thead>
  <tr>
    <th>
      Child's <code>
        slot
      </code>
      
       attribute
    </th>
    
    <th>
      Accepted content
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        graphic
      </code>
    </td>
    
    <td>
      One <code>
        ShIcon
      </code>
      
       or <code>
        ShImage
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        subheading
      </code>
    </td>
    
    <td>
      <code>
        ShText
      </code>
      
       and <code>
        ShLink
      </code>
      
       supporting content.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        primary-action
      </code>
    </td>
    
    <td>
      One <code>
        ShButton
      </code>
      
       with <code>
        variant="primary"
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        secondary-actions
      </code>
    </td>
    
    <td>
      One <code>
        ShButton
      </code>
      
       with <code>
        variant="secondary"
      </code>
      
       or <code>
        "auto"
      </code>
      
      , despite the plural slot name.
    </td>
  </tr>
</tbody>
</table>

Unsupported children are ignored by Polaris with a development warning. Outside a table, render the empty state conditionally when your data is empty. Inside `ShTableBody`, the table shows it when there are no rows and the table is not loading.

## Polaris Element

Renders as `<s-empty-state>`. See [Shopify Empty state reference](https://shopify.dev/docs/api/app-home/latest/web-components/feedback-and-status-indicators/empty-state).


## Sitemap

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