Chapter 07 Navigation
Breadcrumbs
Where the page sits, as a trail of links back up. A named navigation landmark around an ordered list; the last item is the page itself, marked as current and not a link. The slashes are drawn, not read out.
import { BreadcrumbsComponent } from '@okaapi-ui/angular';
// Put each link in an <li>. Works with routerLink or href.An order
<ui-breadcrumbs>
<li><a routerLink="/">Home</a></li>
<li><a routerLink="/orders">Orders</a></li>
<li><span aria-current="page">Order 1042</span></li>
</ui-breadcrumbs>In Arabic
<ui-breadcrumbs label="مسار الصفحة">…</ui-breadcrumbs>When to use something else
| If you need | Use |
|---|---|
| The main links of the app | Navigation |
| Steps of a task in order | Stepper |
| Pages of a long list | Pagination |
Inputs
| Name | Type | Default | What it does |
|---|---|---|---|
label | string | 'Breadcrumb' from labels | Names the landmark, translated. |
<li> children | content | — | One per step; the last holds aria-current="page". |
Keyboard and screen readers
- A named navigation landmark around an ordered list; the last item is marked as the current page.
- The slashes are drawn, not read out.