List View
FreeList patterns: default, checklist, nested tree, virtualized, grouped, template cards, call history and infinite scrolling — and swipe actions on rows, with an Actions button that reaches them without a swipe.
Complexity tier: Application The interactive bar, plus a stated data-volume ceiling, a persistence contract, a bundle budget and an accessible parity surface.
Dataset size: up to 200 items rendered at once recommended, 2,000 maximum. Past ~200 items turn on `virtualized`; the shared 2,000-row ceiling (`SV_UNVIRTUALIZED_ROW_CEILING`) is where an unvirtualized list warns in dev mode. Page a longer feed from the server.
import { SvListViewComponent } from '@styloviz/list-view';Demo & usage
Basic usage
Usage example — open the gallery for the full interactive demo.
An interactive demo for this component lives in the gallery.
Open live demoMore examples
Grouped & searchable
<sv-list-view [items]="items" [grouped]="true" [searchable]="true" [stickyGroupHeaders]="true" />
Virtualized infinite scroll
<sv-list-view [items]="items" [virtualized]="true" [infiniteScroll]="true" [hasMore]="hasMore" (loadMore)="fetchNext()" />
Cursor and scroll position that survive a route change
<sv-list-view [items]="items" [virtualized]="true" [(activeItemId)]="cursorId" [(scrollOffset)]="scrollTop" />
Grouped checklist with section checkboxes
<sv-list-view [items]="items" [grouped]="true" [checkable]="true" [(checkedIds)]="checkedIds" />
Swipe actions on rows
<!-- Swipe toward the end for Read, toward the start for Archive / Delete. A full swipe runs the edge action (Delete); every row's ⋯ button opens the same actions. --> <sv-list-view [items]="messages()" [swipeStartActions]="[{ id: 'read', label: 'Read', icon: 'mail', tone: 'primary' }]" [swipeEndActions]="[ { id: 'delete', label: 'Delete', icon: 'trash', tone: 'danger' }, { id: 'archive', label: 'Archive', icon: 'archive', tone: 'success' } ]" (swipeAction)="onSwipe($event)" />
When to use
Rendering feeds, checklists, contacts or any vertical collection of items. You need grouping, quick/bulk actions, or virtualization for long lists. For tabular, column-aligned data use Data Table.
Async states
- loading
- empty
- error
- retry
- partial
Item identity & owned state
- Restorable state
- checkedIds
- expandedIds
- selectedIds
Bind these to put a saved view back — the open sections, the hidden columns, the selected rows — and read their
Changeevents to store what the user does.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| items | ListViewItem[] | [] | Items to render (label, meta, optional children/avatar/actions). |
| mode | ListViewMode | 'default' | One preset switch. `checklist`, `template` and `call-history` change what a row shows and compose with everything else. `nested`, `grouped` and `scrolling` are Pro presets and this build ignores them — use `[nested]` / `[grouped]` directly, which work here. `virtualization` windows a flat list, and windowing cannot be combined with `[nested]` or `[grouped]`. The full matrix, and the dev warning that enforces it, is on `_ignoredCombinations`. |
| variant | ListViewVariant | 'default' | Visual variant. |
| density | ListViewDensity | 'comfortable' | Row density. |
| selectionMode | ListViewSelectionMode | 'none' | Selection behaviour: none, single or multiple. |
| checkable | boolean | false | Show checkboxes on rows. |
| nested | boolean | false | Enable nested (tree) rows. |
| virtualized | boolean | false | Virtualize long lists for performance. |
| grouped | boolean | false | Group rows under section headers. |
| searchable | boolean | false | Show a search box to filter items. |
| stickyGroupHeaders | boolean | true | Keep group headers pinned while scrolling. |
| infiniteScroll | boolean | false | Load more items as the user scrolls to the end. |
| hasMore | boolean | false | Whether more items are available to load. |
| loadingMore | boolean | false | Show a loading indicator while fetching more. |
| viewportHeight | number | 360 | Viewport height (px) for the virtualized list. |
| itemHeight | number | 68 | Height of a **single-line** row, in pixels — the base every windowed row is measured from. Windowing has to know where row 4,000 starts without rendering rows 0–3,999, so a row's height is computed rather than measured: this base, plus a line for a `subtitle`/`description` and a strip for `tags` on the rows that carry them. See `rowHeightOf`. The estimate is what the row is then sized to, so the scrollbar and the rows agree exactly. |
| overscan | number | 5 | Extra rows rendered above/below the viewport. |
| searchPlaceholder | string | 'Search list items' | Placeholder for the search box. |
| emptyMessage | string | 'No items match your filters.' | Message shown when no items match. |
| customClass | string | '' | Extra CSS classes for the root. |
| ariaLabel | string | 'List view' | Accessible label for the list. |
| announceActions | boolean | true | Announce row actions to screen readers. |
| showQuickActions | boolean | false | Show per-row quick actions on hover/focus. |
| quickActions | ListViewQuickAction[] | [] | Per-row quick actions. |
| bulkActions | ListViewBulkAction[] | [] | Bulk actions for checked rows. |
| enableBulkHotkeys | boolean | false | Enable keyboard hotkeys for bulk actions. |
| bulkHotkeys | Record<string, string> | {} | Map of hotkey → bulk action id. |
| enableRovingFocus | boolean | true | Enable roving-tabindex keyboard navigation. |
| swipeStartActions | readonly ListViewSwipeAction[] | [] | Actions behind each row's START edge, revealed by swiping the row toward its end — right in a left-to-right page, left in a right-to-left one. The first sits at the edge and is the one a full swipe runs. Every action is also in the row's Actions button, for a mouse, a keyboard and a screen reader. Flat and grouped rows, windowed or not; nested rows do not swipe. |
| swipeEndActions | readonly ListViewSwipeAction[] | [] | Actions behind each row's END edge, revealed by swiping toward the start. The first is the full-swipe action. |
| fullSwipe | boolean | true | A swipe past 60% of the row's width runs that side's first action without a tap. |
| loading | boolean | false | True while the first page is being fetched. Replaces the list with a placeholder. For the *next* page use `loadingMore`, which keeps the rows already on screen. |
| error | SvDataError | string | null | null | Load failure. Use `toSvDataError()` from `@styloviz/core` to normalize an `HttpErrorResponse`. |
| serverSide | boolean | false | Search on the server instead of in the component. The supplied `items` are rendered as given — filtering them again would hide rows the server deliberately returned, and client-side search can only ever look at the page already downloaded. |
| debounceMs | number | 300 | Delay before `searched` fires, in milliseconds. `0` emits immediately. |
| selectedIds | Set<string | number> (two-way) | new Set() | Selected row ids (two-way). |
| checkedIds | Set<string | number> (two-way) | new Set() | Checked row ids (two-way). |
| expandedIds | Set<string | number> (two-way) | new Set() | Which nested items are expanded (two-way). A `model` alongside `selectedIds` and `checkedIds` because it is the same kind of fact and the host has the same reasons to reach it: open the branch a deep link names, restore the tree after a route change, persist what the user had open. Held in a private signal it could be neither set nor observed — the one piece of this component's item state that was unreachable. |
| activeItemId | string | number | null (two-way) | null | The row the keyboard cursor is on (two-way) — the roving tab stop. An id, not an element, because a windowed list renders twenty rows of five hundred: the cursor moves to the end of the list, not the edge of the window, and keeps its place when the focused row scrolls out of the DOM. Two-way because it is the same kind of fact as `selectedIds`: a host can put the cursor on the row a deep link names, and read where the user left it. |
| scrollOffset | number (two-way) | 0 | Scroll position of the list viewport, in pixels (two-way). Written on every scroll, applied to the viewport whenever it changes from the outside — bind it and the position survives what destroys the component: a route change, a tab switch, a `@defer` block re-entering, an infinite-scroll page arriving. Without it, restoring a list meant restoring its rows and landing the user back at the top of them. |
| query | string (two-way) | '' | The search term. Two-way bindable, so it can be restored from a URL and kept in step with a server-side query. |
Outputs
| Event | Payload type | Description |
|---|---|---|
| itemClick | ListViewItemClickEvent | Emitted with the clicked item. |
| selectionChange | Set<string | number> | Emitted with the current selection set. |
| checkChange | ListViewCheckChangeEvent | Emitted when a row's checkbox changes. |
| loadMore | ListViewLoadMoreEvent | Emitted when more items should be loaded (infinite scroll). |
| quickActionClick | ListViewQuickActionClickEvent | Emitted when a quick action is clicked. |
| bulkActionClick | ListViewBulkActionClickEvent | Emitted when a bulk action is triggered. |
| swipeAction | ListViewSwipeActionEvent | A swipe action ran — from a revealed button, a full swipe or the row's Actions menu. The list removes nothing itself. |
| searched | string | The debounced search term — fetch matching rows. Debounced by `debounceMs` and never emitted twice for the same term. Pair with `serverSide`. Named `searched` rather than `queryChange`, and that is load-bearing: `query` below is a `model()`, which already owns an output of that name and emits it on every keystroke. Declaring it here as well claimed the same binding twice — Angular reports "Output 'queryChange' is bound to both 'query' and 'queryChange'", the component's metadata stops resolving, and every component importing it then fails with "Component imports must be standalone components…". It also made the debounce contract above a lie, since the model's undebounced emission went out under the same name. `sv-search-bar` has the identical shape and solves it the same way: `value = model()` for the two-way text, `searched = output()` for the debounced notification. Enforced by `model-output-collision` in scripts/check-ui-invariants.mjs. |
| retry | void | The host should re-run the failed load. |
| selectedIdsChange | Set<string | number> | Emits the new `selectedIds` whenever it changes — the output half of `[(selectedIds)]`. |
| checkedIdsChange | Set<string | number> | Emits the new `checkedIds` whenever it changes — the output half of `[(checkedIds)]`. |
| expandedIdsChange | Set<string | number> | Emits the new `expandedIds` whenever it changes — the output half of `[(expandedIds)]`. |
| activeItemIdChange | string | number | null | Emits the new `activeItemId` whenever it changes — the output half of `[(activeItemId)]`. |
| scrollOffsetChange | number | Emits the new `scrollOffset` whenever it changes — the output half of `[(scrollOffset)]`. |
| queryChange | string | Emits the new `query` whenever it changes — the output half of `[(query)]`. |
<sv-list-view-pro>
Also in this family — SvListViewProComponent from @styloviz-pro/list-view.
Async states
- loading
- empty
- error
- retry
- partial
Item identity & owned state
- Restorable state
- checkedIds
- expandedIds
- selectedIds
Bind these to put a saved view back — the open sections, the hidden columns, the selected rows — and read their
Changeevents to store what the user does.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| items | ListViewItem[] | [] | Rows to render. Ids must be unique; `children` builds the tree in nested mode and `group` the sections in grouped mode. |
| mode | ListViewMode | 'default' | One preset switch. `checklist`, `template` and `call-history` change what a row shows and compose with everything else; `scrolling`, `virtualization`, `grouped` and `nested` change how the list itself is built, and those four do NOT all compose — `nested` beats `grouped`, and neither can be windowed. The full matrix, and the dev warning that enforces it, is on `_ignoredCombinations`. |
| variant | ListViewVariant | 'default' | Container style: plain border, tinted `soft` surface, or a heavier `outlined` border. |
| density | ListViewDensity | 'comfortable' | Row padding: `compact`, `comfortable` or `spacious`. |
| selectionMode | ListViewSelectionMode | 'none' | Row selection: `single` replaces the selection on click, `multiple` toggles each clicked row. Selection lives in `selectedIds`. |
| checkable | boolean | false | Show a checkbox on every row plus a "Select all" box; checked rows live in `checkedIds`. Also on in `checklist` mode. |
| nested | boolean | false | Render `items` as an expandable tree using each item's `children`. Same as `mode="nested"`; takes precedence over grouping and windowing. |
| virtualized | boolean | false | Render only the rows in view (windowing) inside a `viewportHeight` scroller. Flat lists only; ignored when nested or grouped. |
| grouped | boolean | false | Split rows into sections by each item's `group` (missing groups fall under "Ungrouped"). Same as `mode="grouped"`. |
| searchable | boolean | false | Show the search box that filters rows by their text. Always shown in `scrolling` and `virtualization` modes. |
| stickyGroupHeaders | boolean | true | Keep each section header pinned to the top while its rows scroll, in grouped mode. |
| infiniteScroll | boolean | false | Emit `loadMore` when the list is scrolled near its end, and show the paging footer. |
| hasMore | boolean | false | Whether more pages exist. While false `loadMore` is not emitted and the footer shows the end-of-list marker. |
| loadingMore | boolean | false | True while the next page is being fetched. Shows a "Loading more" footer and holds back further `loadMore` events. |
| viewportHeight | number | 360 | Height in pixels of a flat list's scroll area: fixed when virtualized or in `scrolling` mode, a maximum otherwise. Also sets the PageUp/PageDown step. |
| itemHeight | number | 68 | Height of a **single-line** row, in pixels — the base every windowed row is measured from. Windowing has to know where row 4,000 starts without rendering rows 0–3,999, so a row's height is computed rather than measured: this base, plus a line for a `subtitle`/`description` and a strip for `tags` on the rows that carry them. See `rowHeightOf`. The estimate is what the row is then sized to, so the scrollbar and the rows agree exactly. |
| overscan | number | 5 | Extra rows rendered above and below the visible window when virtualized, to avoid blank flashes while scrolling. |
| searchPlaceholder | string | 'Search list items' | Placeholder and accessible label of the search box. |
| emptyMessage | string | 'No items match your filters.' | Message in the empty state when there are no rows and no search term is active. |
| customClass | string | '' | Extra CSS classes added to the list container. |
| ariaLabel | string | 'List view' | Accessible name of the list region. |
| announceActions | boolean | true | Announce selection, check, action and paging changes to screen readers through a polite live region. |
| showQuickActions | boolean | false | Show the `quickActions` buttons on every row. |
| quickActions | ListViewQuickAction[] | [] | Per-row action buttons, shown when `showQuickActions` is true. Clicks emit `quickActionClick`. |
| bulkActions | ListViewBulkAction[] | [] | Actions in the bar that appears while rows are checked (or selected, when not checkable). Clicks emit `bulkActionClick`. |
| enableBulkHotkeys | boolean | false | Let single keys trigger bulk actions while rows are selected. Keys map via `bulkHotkeys`, falling back to Delete/Backspace, A and R. |
| bulkHotkeys | Record<string, string> | {} | Map of lowercase key to bulk action `id`, used when `enableBulkHotkeys` is on. Overrides the built-in `delete`, `archive` and `mark-read` keys. |
| enableRovingFocus | boolean | true | Make the list a single tab stop: arrow, Home/End and PageUp/PageDown keys plus typeahead move between rows. |
| swipeStartActions | readonly ListViewSwipeAction[] | [] | Actions behind each row's START edge, revealed by swiping the row toward its end — right in a left-to-right page, left in a right-to-left one. The first sits at the edge and is the one a full swipe runs. Every action is also in the row's Actions button, for a mouse, a keyboard and a screen reader. Flat and grouped rows, windowed or not; nested rows do not swipe. |
| swipeEndActions | readonly ListViewSwipeAction[] | [] | Actions behind each row's END edge, revealed by swiping toward the start. The first is the full-swipe action. |
| fullSwipe | boolean | true | A swipe past 60% of the row's width runs that side's first action without a tap. |
| loading | boolean | false | True while the first page is being fetched. Replaces the list with a placeholder. For the *next* page use `loadingMore`, which keeps the rows already on screen. |
| error | SvDataError | string | null | null | Load failure. Use `toSvDataError()` from `@styloviz/core` to normalize an `HttpErrorResponse`. |
| serverSide | boolean | false | Search on the server instead of in the component. The supplied `items` are rendered as given — filtering them again would hide rows the server deliberately returned, and client-side search can only ever look at the page already downloaded. |
| debounceMs | number | 300 | Delay before `searched` fires, in milliseconds. `0` emits immediately. |
| selectedIds | Set<string | number> (two-way) | new Set() | Ids of the selected rows (two-way). Used when `selectionMode` is not `none`. |
| checkedIds | Set<string | number> (two-way) | new Set() | Ids of the checked rows (two-way). Used when the list is checkable. |
| expandedIds | Set<string | number> (two-way) | new Set() | Which nested items are expanded (two-way). A `model` alongside `selectedIds` and `checkedIds` because it is the same kind of fact and the host has the same reasons to reach it: open the branch a deep link names, restore the tree after a route change, persist what the user had open. Held in a private signal it could be neither set nor observed — the one piece of this component's item state that was unreachable. |
| activeItemId | string | number | null (two-way) | null | The row the keyboard cursor is on (two-way) — the roving tab stop. An id, not an element, because a windowed list renders twenty rows of five hundred: the cursor moves to the end of the list, not the edge of the window, and keeps its place when the focused row scrolls out of the DOM. Two-way because it is the same kind of fact as `selectedIds`: a host can put the cursor on the row a deep link names, and read where the user left it. |
| scrollOffset | number (two-way) | 0 | Scroll position of the list viewport, in pixels (two-way). Written on every scroll, applied to the viewport whenever it changes from the outside — bind it and the position survives what destroys the component: a route change, a tab switch, a `@defer` block re-entering, an infinite-scroll page arriving. Without it, restoring a list meant restoring its rows and landing the user back at the top of them. |
| query | string (two-way) | '' | The search term. Two-way bindable, so it can be restored from a URL and kept in step with a server-side query. |
Outputs
| Event | Payload type | Description |
|---|---|---|
| itemClick | ListViewItemClickEvent | A row was activated by click or keyboard. Not emitted for disabled rows. |
| selectionChange | Set<string | number> | The user changed the selection. Carries the new set of selected ids. |
| checkChange | ListViewCheckChangeEvent | A single row's checkbox was toggled. Carries the item and its new checked state; "Select all" and section checkboxes do not emit it. |
| loadMore | ListViewLoadMoreEvent | The list was scrolled near its end with `infiniteScroll` on, `hasMore` true and no page loading. Carries rendered and total row counts. |
| quickActionClick | ListViewQuickActionClickEvent | A row's quick action was clicked. Carries the item and the action. |
| bulkActionClick | ListViewBulkActionClickEvent | A bulk action was triggered by its button or hotkey. Carries the action and a copy of the checked (or selected) ids. |
| swipeAction | ListViewSwipeActionEvent | A swipe action ran — from a revealed button, a full swipe or the row's Actions menu. The list removes nothing itself. |
| searched | string | The debounced search term — fetch matching rows. Debounced by `debounceMs` and never emitted twice for the same term. Pair with `serverSide`. Named `searched` rather than `queryChange`, and that is load-bearing: `query` below is a `model()`, which already owns an output of that name and emits it on every keystroke. Declaring it here as well claimed the same binding twice — Angular reports "Output 'queryChange' is bound to both 'query' and 'queryChange'", the component's metadata stops resolving, and every component importing it then fails with "Component imports must be standalone components…". It also made the debounce contract above a lie, since the model's undebounced emission went out under the same name. `sv-search-bar` has the identical shape and solves it the same way: `value = model()` for the two-way text, `searched = output()` for the debounced notification. Enforced by `model-output-collision` in scripts/check-ui-invariants.mjs. |
| retry | void | The host should re-run the failed load. |
| selectedIdsChange | Set<string | number> | Emits the new `selectedIds` whenever it changes — the output half of `[(selectedIds)]`. |
| checkedIdsChange | Set<string | number> | Emits the new `checkedIds` whenever it changes — the output half of `[(checkedIds)]`. |
| expandedIdsChange | Set<string | number> | Emits the new `expandedIds` whenever it changes — the output half of `[(expandedIds)]`. |
| activeItemIdChange | string | number | null | Emits the new `activeItemId` whenever it changes — the output half of `[(activeItemId)]`. |
| scrollOffsetChange | number | Emits the new `scrollOffset` whenever it changes — the output half of `[(scrollOffset)]`. |
| queryChange | string | Emits the new `query` whenever it changes — the output half of `[(query)]`. |
Wire it to your API
This component is headless about transport: it renders what you give it and reports what the user asks for. Nothing below requires @styloviz/data — drive it from whatever you already use.
Template
Bound to the names this component actually exposes.
<sv-list-view [serverSide]="true" [items]="items()" [loading]="loading()" [error]="error()" [hasMore]="hasMore()" (queryChange)="onQueryChange($event)" (retry)="load()" />
Host class
Drive the three async inputs from your own fetch.
import { signal } from '@angular/core'; import { toSvDataError, type SvDataError } from '@styloviz/core'; import type { ListViewItem } from '@styloviz/list-view'; readonly items = signal<ListViewItem[]>([]); readonly loading = signal(false); readonly error = signal<SvDataError | null>(null); readonly hasMore = signal<boolean>(false); private query: string | null = null; onQueryChange(query: string): void { this.query = query; void this.load(); } async load(): Promise<void> { this.loading.set(true); this.error.set(null); try { const res = await fetch('/api/items', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ query: this.query }) }); if (!res.ok) throw res; this.items.set(await res.json()); } catch (e) { this.error.set(toSvDataError(e)); } finally { this.loading.set(false); } }
`queryChange` carries `string`, not an `SvDataQuery`, so `@styloviz/data`'s controller cannot take it as it is. The handler above keeps the latest one and fetches with it — map it to whatever your endpoint expects. `serverSide` switches **off** the built-in filtering, sorting and paging. Leave it false and the component works entirely from the array you pass — which is what you want for a few hundred rows. `debounceMs` (default 300) collapses a burst of typing into one request. Set it to 0 only when the query is driven by clicks. `hasMore` and `loadMore` drive incremental paging: set `hasMore` from the response, and append the next page when `loadMore` fires. Normalize failures with `toSvDataError()` from `@styloviz/core`. It derives `retryable` from the status, so a 404 does not get a "Try again" button that can only fail again.
Full walkthrough: Connecting to a backend.
Customization & theming
Swap between flat, grouped, checklist and card layouts. Virtualization keeps long lists fast. Quick actions and bulk actions per row. Every mode renders the same row: avatar, badge, trailing amount, quick actions and the selection control are present under `virtualized` and `grouped` too, not only on a flat list. `[(activeItemId)]` is the keyboard cursor and `[(scrollOffset)]` the scroll position — both two-way, so a host can deep-link to a row, restore either after a route change, or read back where the user left off. **Feature compatibility.** Row presets (`default`, `checklist`, `template`, `call-history`) compose with everything. The structural ones do not: `virtualization` windows flat lists only, `grouped` renders every section in full, and `nested` renders the tree in full and beats `grouped`. Under `virtualized`, a row's height is computed from `itemHeight` plus a line for a `subtitle`/`description` and a strip for `tags`, and the row is then sized to that number — so the scrollbar and the rows always agree. Swipe actions: `swipeStartActions` behind the start edge, `swipeEndActions` behind the end edge, each `{ id, label, icon?, tone? }` (neutral · primary · success · warning · danger); a swipe past half a tray opens it, past 60% of the width runs the edge action unless `[fullSwipe]="false"`; `(swipeAction)` reports `{ item, action, side, trigger }` with trigger tap · full-swipe · menu, and `closeSwipe()` folds an open row away. Flat and grouped rows, windowed or not; nested rows do not swipe.
Best practices
Do: Enable `virtualized` for lists beyond a few hundred items. Do: Pair `infiniteScroll` with `hasMore`/`loadingMore` so the end state is clear. Do: Bind `[(activeItemId)]` and `[(scrollOffset)]` on any list a user can navigate away from and come back to. Restoring the rows alone puts them back at the top of the list with no keyboard cursor. Do: Set `itemHeight` to the height of a **single-line** row under `virtualized`. Rows with a `subtitle`, a `description` or `tags` are measured taller automatically; setting the tallest row's height as the base leaves gaps under every short row instead. Tip: Use `grouped` with `stickyGroupHeaders` to keep context while scrolling. Don't: Don't combine `virtualized` with `nested` or `grouped`, or `nested` with `grouped` — one wins and the other silently does nothing. Each ignored pair logs a dev-mode warning naming what to drop.
Accessibility
Keyboard at scale: the list is ONE tab stop however many rows it holds — the region around the rows is not a second one. ↑/↓ move a row and stop at the ends, Home/End jump to them, PageUp/PageDown move one viewport of rows and clamp (they never wrap), and typing a few letters moves to the next row whose title starts with them. Documented ceiling: 2,000 rendered rows (`SV_UNVIRTUALIZED_ROW_CEILING`) — above it, turn on `virtualized` (flat lists); a nested or grouped list past it warns once in dev mode. Rows are keyboard navigable (roving focus with arrow keys, Home/End) and have clear focus. Under `virtualized` the cursor walks the whole list, not the rendered window: ArrowDown past the last visible row scrolls the next one in, and End reaches the true last row. Exactly one row is a tab stop, so Tab enters and leaves the list once. Scrolling the focused row out of the window moves focus to the scroller rather than losing it to the page, and the next arrow key carries on from the row the cursor was on. Each row declares `aria-posinset`/`aria-setsize` — against the whole list when windowed, against its own section when grouped — so a screen reader announces "row 140 of 241" rather than the size of the window. A grouped, checkable list gives each section header a checkbox that reports `indeterminate` as "mixed" while the section is partly checked; disabled rows are left out of it. A nested list publishes its shape rather than drawing it: depth is not `padding-left` alone, which would read every branch as one flat pile. Each row is a `listitem` carrying `aria-level` and an `aria-posinset`/`aria-setsize` counted against its own siblings, and each expander carries `aria-expanded` plus a label naming the branch ("Collapse src"), not a generic "Expand node". A paged list says where it ends. On the last page the footer holds an end marker naming the total, so "the data ends here" and "the next page is slow" look different, and the live region speaks each page arriving ("Loaded 20 more items.") and the list running out ("End of list. All 241 items loaded."). A list that arrives already complete stays silent — nothing happened. Quick/bulk action buttons and per-row selection controls are individually labelled. The search field is labelled; selection changes are announced via a polite live region. Swipe actions never depend on the swipe: every row gets an Actions button (⋯, named "Actions for <title>", `aria-expanded`) that opens the same actions as buttons over the row — ←/→ between them (mirrored in right-to-left), Escape closes and returns focus to the button. It shares the row's roving tab stop, so the list is still one stop. The trays behind a closed row are `inert` and hidden from assistive technology. The swipe is touch and pen only, locks onto the horizontal axis after 8 px, and leaves vertical scrolling to the browser (`touch-pan-y`); right-to-left reverses which way each side opens.
Feedback on List View
Spotted a gap in this page, or something that didn't work as described? Comments are GitHub Discussions in the public styloviz/community repo, so posting needs a GitHub account.