---
title: "Table"
description: "Data table container. Wraps the Polaris <s-table> web component."
canonical_url: "https://shopify.yan.ad/components/data/table"
---
# Table

> Data table container. Wraps the Polaris <s-table> web component.

## Live preview

<polaris-preview example="table">



</polaris-preview>

## Props

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

<tbody>
  <tr>
    <td>
      <code>
        variant
      </code>
    </td>
    
    <td>
      <code>
        'auto' | 'list'
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Table display variant
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        loading
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Shows loading state
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        paginate
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Enables pagination
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        hasPreviousPage
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Previous page available
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        hasNextPage
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Next page available
    </td>
  </tr>
</tbody>
</table>

## Slots

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

<tbody>
  <tr>
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      Table header, body, and other content
    </td>
  </tr>
</tbody>
</table>

## Polaris Element

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


## Sitemap

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