---
title: "Section"
description: "Section container with optional heading. Wraps the Polaris <s-section> web component."
canonical_url: "https://shopify.yan.ad/components/layout/section"
---
# Section

> Section container with optional heading. Wraps the Polaris <s-section> web component.

## Live preview

<polaris-preview example="section">



</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>
      Section heading
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        padding
      </code>
    </td>
    
    <td>
      <code>
        'base' | 'none'
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Section padding
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        accessibilityLabel
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Accessible label
    </td>
  </tr>
</tbody>
</table>

## Slots

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

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

## Polaris Element

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


## Sitemap

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