> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

---
id: 4306ff31-514f-490e-87f1-819dd03c1097
---

# Divider

> Learn about the Divider component for use in UI extensions.

The `Divider` component renders a grey, horizontal line for spacing out components vertically or creating sections in an extension. Use this component to space out other components when the content needs more separation than white space.

![divider-with-text](https://knowledge.hubspot.com/hubfs/Knowledge_Base_2023_2024/divider-with-text.png)

```jsx theme={null}
import { Divider, Text } from "@hubspot/ui-extensions";

const Extension = () => {
  return (
    <>
      <Text>Text above the divider.</Text>
      <Divider />
      <Text>Text below the divider.</Text>
    </>
  );
};
```

## Props

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

  <tbody>
    <tr>
      <td>`size`</td>

      <td>
        `"extra-large"` | `"extra-small"` | `"flush"` | `"large"` | `"lg"` | `"md"` | `"medium"` | `"sm"` | `"small"` | `"xl"` | `"xs"`

        **Default:** `"small"`
      </td>

      <td>The space between the divider and the content above and below it.</td>
    </tr>

    <tr><td>`testId`</td>
    <td>`string`</td>
    <td>Used by `findByTestId()` to locate this component in tests.</td></tr>
  </tbody>
</table>

## Variants

Using the `size` prop, you can set the amount of padding above and below the divider. Values range from `'extra-small'` to `'extra-large'` (`'small'` by default).

![divider-distance-examples](https://knowledge.hubspot.com/hubfs/Knowledge_Base_2023_2024/divider-distance-examples.png)

## Guidelines

* **DO:** use dividers to group similar components together.
* **DO:** consider when a new card or component might be needed, rather than using a divider.
* **DON'T:** use two dividers in a row without content between them.

## Related components

* [Box](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensions/ui-components/standard-components/box.md)
* [Accordion](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensions/ui-components/standard-components/accordion.md)
* [Tile](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensions/ui-components/standard-components/tile.md)
