Chapter 08 Layout
Divider
A thin line between groups of content. Reach for space first: a divider is for when space alone does not show where one group ends.
import { DividerComponent } from '@okaapi-ui/angular';Between sections
Delivery: 30 EGP
Total: 370 EGP
<ui-divider />With words
The words are read as normal text, so a screen reader hears 'or' between the two choices.
<ui-divider label="or" />Vertical
Between items in a row. It stretches to the row's height.
18 orders 3 in the kitchen
<div class="flex items-center gap-3">
<span>18 orders</span>
<ui-divider orientation="vertical" />
<span>3 in the kitchen</span>
</div>In Arabic
<ui-divider label="أو" />When to use something else
| If you need | Use |
|---|---|
| A frame around a group | Card |
| Space between groups | Tailwind gap or margin classes |
Inputs
| Name | Type | Default | What it does |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | Which way the line runs. |
label | string | — | Words in the middle of the line, read as text. Horizontal only. |
Keyboard and screen readers
- Read as a separator; a divider with words in the middle is read as those words instead.