---
title: Divider
description: A simple horizontal rule for visually separating blocks.
---

A divider renders a thin horizontal line. Use it to split up sections of a message or app
surface. It has no other fields to configure.

<Preview
  payload={{
    blocks: [{ type: "divider" }],
  }}
/>

## Fields

| Prop | Type | Default | Description |
| - | - | - | - |
| `type` | `string` | - | Always `"divider"`. |
| `block_id?` | `string` | - | A unique identifier for the block, up to 255 characters. Slack generates one if omitted. |

## Examples

### Between two sections

<Preview
  payload={{
    blocks: [
      {
        type: "section",
        text: {
          type: "mrkdwn",
          text: "*Farmhouse Thai Cuisine*\n:star::star::star::star: 1528 reviews",
        },
        accessory: {
          type: "image",
          image_url: "https://api.slack.com/img/blocks/bkb_template_images/beagle.png",
          alt_text: "alt text for image",
        },
      },
      { type: "divider" },
      {
        type: "section",
        text: { type: "mrkdwn", text: "This section has a button." },
        accessory: {
          type: "button",
          action_id: "more",
          text: { type: "plain_text", text: "Learn more" },
          value: "more",
        },
      },
    ],
  }}
/>

## Related

**[Section](/blocks/section)**

Text, fields, and an optional accessory element.

**[Header](/blocks/header)**

A bold, single-line title block.

**[Context](/blocks/context)**

Small, muted supplementary text or images.
