eXtreme Automation
Back to catalog
Components

Navigation

Five interactive navigation components — Tabs, Accordion, Breadcrumb, Pagination and Menu — each accessible, keyboard-driven and wired by class. These previews render the real @xa/ui components.

Tabs

A hands-on DevOps workshop covering containers, CI/CD and infrastructure as code. Use / to move between tabs, Home/End to jump.

Props — Tabs

PropTypeDefaultDescription
tabs{id, label}[]Tab definitions; one role="tab" + panel each
activeIdstringfirst tabInitially-selected tab id
classstringExtra CSS on the wrapper

Panels come from named slots panel-{id}. Keyboard: ←/→ move, Home/End jump.

Accordion

Two days of instruction, lab access, lunch, and a recording of every session.

allowMultiple — several panels open at once

Both of these can stay open together.

No sibling auto-closes in multiple mode.

Props — Accordion

PropTypeDefaultDescription
items{id, title, open?}[]Disclosure items; open sets initial state
allowMultiplebooleanfalseAllow several panels open; otherwise single-open
classstringExtra CSS on the wrapper

Bodies come from named slots content-{id}. Chevron rotates on expand.

Breadcrumb

Two levels

Props — Breadcrumb

PropTypeDefaultDescription
items{label, href?}[]Trail items; last is current (aria-current="page", no link)
classstringExtra CSS on the <nav>

Renders <nav aria-label="Breadcrumb"><ol> with chevron separators.

Pagination

Link mode (baseHref="?page=")
Button mode — dispatches xa:page (see result below)

Click a page above — the dispatched page lands here.

Props — Pagination

PropTypeDefaultDescription
currentPagenumberActive page (1-based); gets aria-current="page"
totalPagesnumberTotal number of pages
baseHrefstringWhen set → link mode (<a>); omit → button mode
siblingsnumber1Page numbers shown either side of current
classstringExtra CSS on the <nav>

Button mode dispatches a bubbling CustomEvent('xa:page', { detail: { page } }) on the <nav>.

Menu

Props — Menu

PropTypeDefaultDescription
labelstringTrigger button text
align'left' | 'right''left'Popover alignment relative to the trigger
classstringExtra CSS on the wrapper

Slot: pass <a>/<button> items (auto-tagged role="menuitem"). Closes on Escape, outside-click, item click. ↑/↓ move focus.