Skip to content
Okaapiأوكابي
Framework for the code
Theme
Okaapi on GitHub

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.

Use it in Angular
import { DividerComponent } from '@okaapi-ui/angular';

Between sections

Delivery: 30 EGP

Total: 370 EGP

Angular
<ui-divider />

With words

The words are read as normal text, so a screen reader hears 'or' between the two choices.

or
Angular
<ui-divider label="or" />

Vertical

Between items in a row. It stretches to the row's height.

18 orders3 in the kitchen
Angular
<div class="flex items-center gap-3">
  <span>18 orders</span>
  <ui-divider orientation="vertical" />
  <span>3 in the kitchen</span>
</div>

In Arabic

أو
Angular
<ui-divider label="أو" />

When to use something else

If you needUse
A frame around a groupCard
Space between groups Tailwind gap or margin classes

Inputs

NameTypeDefaultWhat it does
orientation'horizontal' | 'vertical''horizontal'Which way the line runs.
labelstring — 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.