UI Interface · Components
Navigation
Wayfinding building blocks: breadcrumbs, tabs, accordions, pagination, steppers, dropdown menus, command palette, sidebar items, navbars and timelines. Every demo uses the real sx- classes and the shell contracts (data-sx-tabs, data-sx-dropdown, data-sx-submenu, data-sx-open-cmdk).
Breadcrumbs
Classes sx-crumbs, sx-crumb, sx-crumb-sep, is-current. Add sx-crumb--mid to the middle crumbs that should disappear below 640px, or fold them into an overflow menu.
<nav class="sx-crumbs" aria-label="Breadcrumb">
<a href="#" class="sx-crumb" aria-label="Home"><i class="icon-house"></i></a>
<i class="icon-chevron-right sx-crumb-sep"></i>
<a href="#" class="sx-crumb sx-crumb--mid">Projects</a> <!-- hidden under 640px -->
<i class="icon-chevron-right sx-crumb-sep"></i>
<span class="sx-crumb is-current" aria-current="page">Sprint 14</span>
</nav>
<!-- overflow crumb -->
<div class="sx-dropdown" data-sx-dropdown>
<button class="sx-crumb" data-sx-trigger aria-haspopup="menu" aria-expanded="false" aria-label="Show hidden levels"><i class="icon-ellipsis"></i></button>
<div class="sx-menu sx-menu--start" role="menu">...</div>
</div>
- Wrap in
nav[aria-label="Breadcrumb"]and mark the last item witharia-current="page". - Keep the first and last crumb on phones; fold everything between into the ellipsis menu.
- Separators are decorative; chevrons mirror automatically in RTL.
Tabs
Wire any group with data-sx-tabs; each button carries data-sx-tab="id" and its panel data-sx-panel="id" inside the nearest data-sx-tabscope. The shell toggles is-active, aria-selected and hidden.
.sx-tabs
Showing Thursday, Nov 12.
Showing Nov 9 – Nov 15.
Showing November 2026.
248 tickets.
37 open tickets.
211 closed tickets.
Amelia Hart, Head of Operations. Time zone UTC−5, language English.
Two-factor authentication is on. Last password change 41 days ago.
Email digests every weekday at 8:00. Push alerts for mentions only.
Team plan, 24 seats, renews Dec 1, 2026 at $576.00.
<div data-sx-tabscope>
<div class="sx-tabs" role="tablist" data-sx-tabs>
<button type="button" role="tab" class="is-active" aria-selected="true" data-sx-tab="ov">Overview</button>
<button type="button" role="tab" aria-selected="false" data-sx-tab="act">Activity</button>
<button type="button" role="tab" disabled>Billing</button>
</div>
<div data-sx-panel="ov" role="tabpanel">...</div>
<div data-sx-panel="act" role="tabpanel" hidden>...</div>
</div>
<!-- pills / vertical: same attributes, local classes (.ui-pills, .ui-vtabs) -->
<div class="sx-seg" data-sx-seg="range"><button class="is-active" data-value="7d">7D</button><button data-value="30d">30D</button></div>
- Use tabs for sibling views of the same object; use
sx-segwhen the choice only changes data (firessx:seg). - Give each
data-sx-tabscopeits own wrapper so panels with equal ids on one page never collide. - Disabled tabs use the native
disabledattribute so they are skipped by click and keyboard.
Accordions
Built on sx-collapse (a 0fr/1fr grid transition) plus the data-sx-submenu trigger contract that also drives the sidebar. Add data-ui-acc="single" on the wrapper for one-open-at-a-time behaviour (page-local script).
<div data-ui-acc="single"> <!-- omit the attribute for multi-open -->
<div class="ui-acc-item">
<button type="button" class="ui-acc-trigger" data-sx-submenu aria-expanded="true">
Question <i class="icon-chevron-down ui-acc-chev"></i>
</button>
<div class="sx-collapse is-open"><div><div class="ui-acc-body">Answer...</div></div></div>
</div>
</div>
/* the panel must be the trigger's next sibling; .sx-collapse > div needs min-height:0 (kit does it) */
- The trigger is a real
buttonwitharia-expanded; the shell keeps it in sync. - Outside the sidebar, the local script handles the click so a collapsed rail is never expanded by an accordion.
- Prefer single-open for FAQs and multi-open for settings groups people compare.
Pagination
Numbered pager (sx-pager) with a sliding window, a compact prev/next, a page-size variant and a load-more button. All four are live.
Daniel ReyesApproved the Q4 budget2m
Priya NairUploaded brand-guidelines-v7.pdf18m
Marcus ObiClosed ATL-48241m
Amelia HartInvited 3 teammates1h
Lena KowalskiCommented on Sprint 142h
Tomas SilvaMerged release 2.8.03h
Nadia AzizRenewed the Team plan5h
<nav class="sx-pager" aria-label="Pagination">
<button type="button" aria-label="Previous page" disabled><i class="icon-chevron-left"></i></button>
<button type="button" class="is-active" aria-current="page">1</button>
<button type="button">2</button>
<button type="button">3</button>
<span class="ui-gap">…</span>
<button type="button">25</button>
<button type="button" aria-label="Next page"><i class="icon-chevron-right"></i></button>
</nav>
<!-- load more -->
<button type="button" class="sx-btn sx-btn--outline" aria-busy="true">
<i class="icon-loader-circle animate-spin"></i>Loading…
</button>
- Mark the current page with
aria-current="page"and disable (not hide) the unavailable prev/next. - Show the total count (“Showing 11–20 of 248”) next to page-size selectors.
- Load-more suits feeds; keep numbered pagination for tables people need to bookmark.
Steppers and wizards
Horizontal and vertical wizards with working Back and Next. States are is-done and is-current on each step; the last Next becomes Finish.
- 1AccountYour details
- 2WorkspaceName and region
- 3TeamInvite people
- 4ReviewConfirm
Workspace ready
Northwind Ops is live. You can reset the demo below.
- 1Connect sourceChoose where data comes fromPick a source: Postgres, CSV upload or REST API. Credentials are encrypted at rest.
- 2Map fieldsMatch columns14 of 16 columns matched automatically. Review the 2 remaining fields.
- 3Schedule syncPick a cadenceSync every hour, daily at 02:00 UTC, or on demand through the API.
Pipeline created
<div data-ui-wizard>
<ol class="ui-steps">
<li class="is-done" data-ui-step>
<span class="ui-dot"><b>1</b><i class="icon-check"></i></span>
<span class="ui-st">Account<small>Your details</small></span>
</li>
<li class="is-current" data-ui-step aria-current="step">...</li>
<li data-ui-step>...</li>
</ol>
<div data-ui-panel>Step content</div>
<button data-ui-prev>Back</button> <button data-ui-next>Next</button>
</div>
- Expose position with
aria-current="step"; never rely on colour alone (done steps also swap the number for a check). - Allow Back without losing entered data; validate on Next, not on every keystroke.
- Use the vertical form when step descriptions are long or the page is narrow.
Dropdown menus
data-sx-dropdown wraps a data-sx-trigger and a .sx-menu. Esc and outside click close; arrow keys, Home and End move focus. Modifiers: sx-menu--start, sx-menu--up, data-sx-keep (stay open on click).
<div class="sx-dropdown" data-sx-dropdown>
<button type="button" class="sx-btn sx-btn--outline" data-sx-trigger aria-haspopup="menu" aria-expanded="false">
Actions <i class="icon-chevron-down"></i>
</button>
<div class="sx-menu sx-menu--start" role="menu"> <!-- --end is default, add --up to open upward -->
<p class="sx-menu-head">Document</p>
<a href="#" class="sx-menu-item" role="menuitem"><i class="icon-pencil"></i>Rename</a>
<a href="#" class="sx-menu-item is-selected" role="menuitem">Selected item</a>
<div class="sx-menu-sep"></div>
<a href="#" class="sx-menu-item" role="menuitem">Delete</a>
</div>
</div>
<!-- add data-sx-keep on .sx-menu to keep it open after a click (multi-select) -->
- Triggers need
aria-haspopupandaria-expanded; menus userole="menu"orlistbox. - The shell shifts menus horizontally so they never clip on 360px screens; cap wide panels with
min(640px, calc(100vw - 3rem)). - Destructive actions go last, separated, in the danger colour with an icon.
Command palette
The palette lives in the shared scripts partial. Any element with data-sx-open-cmdk opens it; Ctrl K and / work everywhere.
| ↑ ↓ | Move through results |
| Enter | Open the highlighted item |
| Esc | Close and return focus |
<button type="button" class="sx-search-trigger" data-sx-open-cmdk>
<i class="icon-search"></i><span class="flex-1">Search or jump to…</span>
<kbd class="sx-kbd" data-sx-kbd>Ctrl K</kbd> <!-- shows ⌘ K on Apple devices -->
</button>
<!-- items inside #sxCmdkList (scripts partial) -->
<p class="sx-menu-head">Apps</p>
<a href="app-chat.html" class="sx-menu-item sx-cmdk-item"><i class="icon-message-circle"></i>Chat</a>
- The palette is a modal dialog: focus moves to the input and returns to the trigger on close.
- Group commands under
sx-menu-head; empty groups hide automatically while filtering.
Sidebar item states
Every state of sx-nav-link. Hover and focus are shown with forced helper classes so you can compare them at rest. The right frame mimics the collapsed rail.
<p class="sx-nav-label">Workspace</p>
<a href="x.html" class="sx-nav-link is-active" aria-current="page" data-tip="Home">
<i class="icon-house"></i><span class="sx-text">Home</span>
<span class="sx-nav-badge">NEW</span> <!-- or <span class="sx-nav-count">12</span> -->
</a>
<button type="button" class="sx-nav-link" data-sx-submenu aria-expanded="false">
<i class="icon-layers"></i><span class="sx-text">Projects</span><i class="icon-chevron-right sx-nav-chevron"></i>
</button>
<div class="sx-collapse"><div><ul class="sx-sub"><li><a class="sx-nav-link" href="#">...</a></li></ul></div></div>
- Wrap labels in
.sx-textso the collapsed rail can hide them; keepdata-tipfor the rail tooltip. - The active page is marked automatically by the file name; set
aria-currentmanually in static demos.
Timeline and vertical steps
Use sx-timeline for activity logs (connector drawn from each tile) and the status stepper for order or release tracking.
sx-timeline)
- Invoice INV-2026-1184 paid
$4,280.00 via ACH · Nov 12, 09:14
- Invoice sent to Contoso Ltd.
By Amelia Hart · Nov 10, 16:02
- Draft edited
Added 2 line items · Nov 10, 11:30
- Draft created
From template “Retainer” · Nov 9, 14:48
- 1Order placedNov 8, 10:22
- 2Packed at Reno hubNov 9, 15:05
- 3Out for deliveryArriving today by 6 pm
- 4DeliveredPending
- 09:14Release 2.8.0 deployed
- 08:40Branch merged into main
<ol class="sx-timeline">
<li>
<span class="sx-tile sx-tile--sm" data-tone="success"><i class="icon-circle-check"></i></span>
<div><b>Invoice paid</b><p class="text-[12px] text-[var(--text-tertiary)]">Nov 12, 09:14</p></div>
</li>
</ol>
<ol class="ui-vsteps">
<li class="is-done"><span class="ui-dot"><b>1</b><i class="icon-check"></i></span><div class="ui-st">Order placed</div></li>
<li class="is-current" aria-current="step">...</li>
</ol>
- Order newest first for logs and chronologically for processes.
- Pair each status colour with an icon; the connector only shows sequence.
Usage and accessibility checklist
Applies to every navigation component on this page.
Landmarks. Use nav with unique aria-label values; the current page gets aria-current.
Keyboard. Everything is a native button or link. Menus support arrows, Home, End and Esc; tabs are reachable with Tab and activated with Enter or Space.
Focus. The kit draws a 2px primary outline on :focus-visible inside .sx-app; never remove it.
Colour. State never relies on colour alone: active tabs add an underline, steps add a check, selected menu items add a check icon.