# <divider>

A thin horizontal rule between sections, in any color, thickness and inset.

Category: Layout. Also written `<hr>`.

```ham
<column style="w-full">
    <text>Subtotal  $38.00</text>
    <divider/>
    <text>Delivery  $4.50</text>
    <divider color="teal"
             thickness="2"/>
    <text style="font-bold">Total  $42.50</text>
</column>
```

How Hype Apps draws it on a phone: [light](https://hypeapps.dev/img/tags/divider-light.webp), [dark](https://hypeapps.dev/img/tags/divider-dark.webp).

## Attributes

| Name | What it does | Default |
|---|---|---|
| `angle` | Diagonal angle in degrees (row-only, clips neighbor elements) |  |
| `color` | Divider color |  |
| `direction` (also `dir`) | Direction of divider (horizontal, vertical, h, v) | `horizontal` |
| `end-indent` | Ending indent | `0.0` |
| `height` | Height for vertical divider |  |
| `indent` | Starting indent | `0.0` |
| `thickness` | Line thickness | `1.0` |

Any tag also takes gestures: `@on.tap`, `@on.longpress`, `@on.doubletap` and `@on.swipeleft` (and right, up and down). `@click` runs on a tap too.

## Guides and recipes that use it

- [Layout and styling](https://hypeapps.dev/docs/guides/layout.md)

## Related tags

- [`<column>`](https://hypeapps.dev/docs/reference/column.md): Stacks its children top to bottom, with a gap between them and an alignment across.
- [`<text>`](https://hypeapps.dev/docs/reference/text.md): A run of text; with @text it shows an expression that updates as its variables change.
- [`<address>`](https://hypeapps.dev/docs/reference/address.md): Contact details as a block, in italic by default, as HTML's address element.
- [`<aside>`](https://hypeapps.dev/docs/reference/aside.md): A side note set apart from the main text, as HTML's aside element; it works like a block.
- [`<background>`](https://hypeapps.dev/docs/reference/background.md): The layer a swiped dismissible row reveals behind it, such as a red delete strip.
- [`<block>`](https://hypeapps.dev/docs/reference/block.md): The general-purpose container: groups children and gives them padding, color, corners and a border.
- [`<card>`](https://hypeapps.dev/docs/reference/card.md): A surface for grouped content, with padding, rounded corners and a soft shadow.
- [`<center>`](https://hypeapps.dev/docs/reference/center.md): Centers its children and their lines of text, on both axes or only one.

All tags: https://hypeapps.dev/docs/reference.md · The full reference: https://hypeapps.dev/llms.txt
