Divider
A visual separator between content.
When To Use
- Divide sections of article.
- Divide inline text and links.
Examples
Horizontal
Divider default type is horizontal.
Above
Below
astro
<Divider /> Vertical
Use orientation="vertical" to make it vertical.
Left Right
astro
<div class="h-5 flex items-center justify-center">
<span class="text-sm text-zinc-500">Left</span>
<Divider orientation="vertical" />
<span class="text-sm text-zinc-500">Right</span>
</div> Orientation of title
Set alignment of divider to left, right or center.
Left Text
Center Text
Right Text
astro
<Divider align="start">Left Text</Divider>
<Divider align="center">Center Text</Divider>
<Divider align="end">Right Text</Divider> API Reference
| Property | Description | Type | Default |
|---|---|---|---|
| orientation | The orientation of the divider. | "horizontal" | "vertical" | "horizontal" |
| align | The alignment of the inner text/content (only applicable horizontally). | "start" | "center" | "end" | "center" |