---
title: "Divider"
description: "Visual divider between content. Wraps the Polaris <s-divider> web component."
canonical_url: "https://shopify.yan.ad/components/layout/divider"
---
# Divider

> Visual divider between content. Wraps the Polaris <s-divider> web component.

## Live preview

<polaris-preview example="divider">



</polaris-preview>

## Props

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

<tbody>
  <tr>
    <td>
      <code>
        direction
      </code>
    </td>
    
    <td>
      <code>
        'inline' | 'block'
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Divider direction
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        color
      </code>
    </td>
    
    <td>
      <code>
        'base' | 'strong'
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Divider color
    </td>
  </tr>
</tbody>
</table>

## Slots

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

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

## Polaris Element

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


## Sitemap

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