Waterfall
Show a trace or a page's requests as bars on a shared time axis, with spans that expand to show what they started.
Use a Waterfall for anything with a start and a duration that nests: a browser's network requests, an OpenTelemetry trace, the steps of a build. Each span is a row with its own bar, placed on one time axis, and screen reader and keyboard users get a treegrid they can walk span by span.
<script setup lang="ts">
import {
Waterfall,
WaterfallAxis,
WaterfallBar,
WaterfallCell,
WaterfallColumnHeader,
WaterfallHeaderRow,
WaterfallMark,
WaterfallRow,
WaterfallRowHeader,
type WaterfallData,
type WaterfallBarLabelDetails,
type WaterfallDataItem,
} from "@ui-sdk/vue/waterfall"
const requests: WaterfallData = [
{ value: "document", label: "/", start: 0, duration: 182 },
{ value: "styles", label: "app.css", start: 190, duration: 96 },
{ value: "script", label: "app.js", start: 192, duration: 410 },
{ value: "font", label: "inter.woff2", start: 300, duration: 220 },
{ value: "user", label: "api/user", start: 610, duration: 240 },
{ value: "avatar", label: "avatar.png", start: 860, duration: 150 },
]
const sizes: Record<string, string> = {
document: "14 kB",
styles: "8 kB",
script: "212 kB",
font: "48 kB",
user: "1 kB",
avatar: "36 kB",
}
const getBarLabel = (
request: WaterfallDataItem,
{ start, duration }: WaterfallBarLabelDetails
) => `${sizes[request.value]}, starts at ${start}, takes ${duration}`
</script>
<template>
<Waterfall
aria-label="Network requests"
:items="requests"
:get-bar-label="getBarLabel"
>
<WaterfallHeaderRow>
<WaterfallColumnHeader>Name</WaterfallColumnHeader>
<WaterfallColumnHeader>Size</WaterfallColumnHeader>
<WaterfallColumnHeader aria-label="Timeline">
<WaterfallAxis :max-ticks="5" />
<WaterfallMark :time="620">DOMContentLoaded</WaterfallMark>
</WaterfallColumnHeader>
</WaterfallHeaderRow>
<WaterfallRow
v-for="request in requests"
:key="request.value"
:value="request.value"
>
<WaterfallRowHeader>{{ request.label }}</WaterfallRowHeader>
<WaterfallCell>{{ sizes[request.value] }}</WaterfallCell>
<WaterfallBar />
</WaterfallRow>
</Waterfall>
</template>Installation
npm install @ui-sdk/vue @ui-sdk/coreComposition
Use the following composition to build a Waterfall:
Waterfall
โโโ WaterfallHeaderRow
โ โโโ WaterfallColumnHeader
โ โโโ WaterfallColumnHeader
โ โโโ WaterfallAxis
โ โ โโโ WaterfallTick
โ โโโ WaterfallMark
โโโ WaterfallRow
โ โโโ WaterfallRowHeader
โ โ โโโ WaterfallIndicator
โ โโโ WaterfallCell
โ โโโ WaterfallBar
โโโ WaterfallRow
โโโ WaterfallRowHeader
โโโ WaterfallBarPass every span as items and render a WaterfallRow for each with the span's value. The rows are flat siblings: the waterfall reads each one's level, place among its siblings and children from items. Give the waterfall an accessible name.
WaterfallRowHeader names the span, and holds the WaterfallIndicator of a span with children. WaterfallBar is the cell on the time axis. WaterfallCell is any other column, like a status or a size. The header row, the axis and marks are optional.
Usage
Each span has a value, a label, a start and a duration in milliseconds, and the spans it started as children:
<script setup lang="ts">
import {
Waterfall,
WaterfallBar,
WaterfallRow,
WaterfallRowHeader,
type WaterfallData,
} from "@ui-sdk/vue/waterfall"
const requests: WaterfallData = [
{ value: "document", label: "/", start: 0, duration: 182 },
{ value: "script", label: "app.js", start: 192, duration: 410 },
]
</script>
<template>
<Waterfall aria-label="Network requests" :items="requests">
<WaterfallRow
v-for="request in requests"
:key="request.value"
:value="request.value"
>
<WaterfallRowHeader>{{ request.label }}</WaterfallRowHeader>
<WaterfallBar />
</WaterfallRow>
</Waterfall>
</template>Every row sets --waterfall-start and --waterfall-size, where its span begins and how much of the axis it covers, as percentages. Place the bar with them in plain CSS, with no layout in JavaScript:
[data-slot="waterfall-bar"] {
position: relative;
}
[data-slot="waterfall-bar"]::before {
content: "";
position: absolute;
inset-block: 6px;
inset-inline-start: var(--waterfall-start);
width: var(--waterfall-size);
background: steelblue;
}Without content, the waterfall renders a row for every span, with its header and bar.
Network Requests
The first example adds a header row. WaterfallAxis renders a WaterfallTick at round times, at most max-ticks of them, and WaterfallMark draws a moment across every row, like DOMContentLoaded, placed by --waterfall-mark. The axis is hidden from screen readers, who hear each bar's own times instead. get-bar-label changes what a bar says; this one adds the request's size.
Nested Spans
Spans with children expand and collapse. Click a span's indicator, or press Right and Left on its row. To render only the rows that show, keep expanded in state and pass it to visibleWaterfallRows(items, expanded), which flattens the open spans in order.
Clicking a row, or pressing Enter or Space on it, selects it. v-model:value holds the selected span, like the one a details panel shows. format changes how times read, here as narrow milliseconds.
<script setup lang="ts">
import { ChevronRightIcon } from "@lucide/vue"
import {
createWaterfallController,
visibleWaterfallRows,
Waterfall,
WaterfallAxis,
WaterfallBar,
WaterfallColumnHeader,
WaterfallHeaderRow,
WaterfallIndicator,
WaterfallRow,
WaterfallRowHeader,
type WaterfallData,
} from "@ui-sdk/vue/waterfall"
import { computed, ref } from "vue"
import { useLog } from "./log"
const trace: WaterfallData = [
{
value: "checkout",
label: "POST /checkout",
start: 0,
duration: 920,
children: [
{ value: "auth", label: "auth.verify", start: 12, duration: 64 },
{
value: "cart",
label: "cart.load",
start: 80,
duration: 310,
children: [
{
value: "cart-db",
label: "db.query carts",
start: 96,
duration: 140,
},
{
value: "prices",
label: "pricing.quote",
start: 240,
duration: 136,
},
],
},
{
value: "payment",
label: "payments.charge",
start: 400,
duration: 470,
children: [
{ value: "fraud", label: "fraud.score", start: 410, duration: 120 },
{
value: "gateway",
label: "gateway.capture",
start: 540,
duration: 310,
},
],
},
{ value: "email", label: "email.enqueue", start: 880, duration: 30 },
],
},
]
const log = useLog()
const spans = createWaterfallController()
const expanded = ref(["checkout"])
const value = ref<string | null>(null)
const rows = computed(() => visibleWaterfallRows(trace, expanded.value))
</script>
<template>
<div data-slot="stack">
<div data-slot="controls">
<button type="button" @click="spans.expandAll()">Expand All</button>
<button type="button" @click="spans.collapseAll()">Collapse All</button>
</div>
<Waterfall
v-model:expanded="expanded"
v-model:value="value"
aria-label="Checkout trace"
:items="trace"
:controller="spans"
:format="{ style: 'unit', unit: 'millisecond', unitDisplay: 'narrow' }"
@value-change="(next: string | null) => log(`Selected ${next}`)"
>
<WaterfallHeaderRow>
<WaterfallColumnHeader>Span</WaterfallColumnHeader>
<WaterfallColumnHeader aria-label="Timeline">
<WaterfallAxis />
</WaterfallColumnHeader>
</WaterfallHeaderRow>
<WaterfallRow
v-for="{ item } in rows"
:key="item.value"
:value="item.value"
>
<WaterfallRowHeader>
<WaterfallIndicator v-if="item.children">
<ChevronRightIcon aria-hidden="true" />
</WaterfallIndicator>
{{ item.label }}
</WaterfallRowHeader>
<WaterfallBar />
</WaterfallRow>
</Waterfall>
</div>
</template>You can also render every row and let the waterfall hide the ones inside a collapsed span: rows it hides get hidden, so expanded can stay uncontrolled.
Zoom
range sets the stretch of time the axis shows, as [start, end]. Change it to zoom or pan: the bars and ticks follow, and a bar outside the range shrinks to its edge. Without it, the axis runs from the earliest start to the latest end.
The default slot of WaterfallAxis receives its state's ticks, for ticks of your own.
<script setup lang="ts">
import { ChevronRightIcon } from "@lucide/vue"
import {
Waterfall,
WaterfallAxis,
WaterfallBar,
WaterfallColumnHeader,
WaterfallHeaderRow,
WaterfallIndicator,
WaterfallRow,
WaterfallRowHeader,
WaterfallTick,
type WaterfallData,
} from "@ui-sdk/vue/waterfall"
import { ref } from "vue"
const trace: WaterfallData = [
{
value: "render",
label: "render /dashboard",
start: 0,
duration: 1200,
children: [
{ value: "session", label: "session", start: 20, duration: 80 },
{ value: "metrics", label: "metrics", start: 110, duration: 640 },
{ value: "alerts", label: "alerts", start: 110, duration: 260 },
{ value: "html", label: "stream html", start: 760, duration: 420 },
],
},
]
const spans = [trace[0], ...trace[0].children!]
const full: [number, number] = [0, 1200]
function zoomed([start, end]: [number, number], factor: number) {
const center = (start + end) / 2
const half = Math.min(((end - start) * factor) / 2, full[1] / 2)
const from = Math.min(Math.max(full[0], center - half), full[1] - half * 2)
return [from, from + half * 2] as [number, number]
}
const range = ref(full)
</script>
<template>
<div data-slot="stack">
<div data-slot="controls">
<button type="button" @click="range = zoomed(range, 0.5)">Zoom In</button>
<button type="button" @click="range = zoomed(range, 2)">Zoom Out</button>
<button type="button" @click="range = full">Reset</button>
</div>
<Waterfall
aria-label="Dashboard render"
:items="trace"
:range="range"
:default-expanded="['render']"
default-value="metrics"
>
<WaterfallHeaderRow>
<WaterfallColumnHeader>Span</WaterfallColumnHeader>
<WaterfallColumnHeader aria-label="Timeline">
<WaterfallAxis v-slot="{ state }">
<WaterfallTick
v-for="tick in state.ticks"
:key="tick.time"
:time="tick.time"
>
{{ tick.label }}
</WaterfallTick>
</WaterfallAxis>
</WaterfallColumnHeader>
</WaterfallHeaderRow>
<WaterfallRow v-for="span in spans" :key="span.value" :value="span.value">
<WaterfallRowHeader>
<WaterfallIndicator v-if="span.children">
<ChevronRightIcon aria-hidden="true" />
</WaterfallIndicator>
{{ span.label }}
</WaterfallRowHeader>
<WaterfallBar />
</WaterfallRow>
</Waterfall>
</div>
</template>Large Traces
A trace can have thousands of spans. Render only the rows in view: flatten the open spans with visibleWaterfallRows, and render the nearby rows at their offsets. The waterfall still reports every row's level and place among its siblings, so screen readers hear the whole hierarchy. Give the waterfall aria-rowcount with the number of rows that show, and each row aria-rowindex with its index plus one, so a screen reader counts rows in the whole trace, not just the ones in the page.
@highlight reports the index of the row the keyboard moves to. Scroll it into view there, so a row that isn't rendered yet takes focus once it is. An arrow key changes only the two rows it moves between, however long the trace is.
<script setup lang="ts">
import { ChevronRightIcon } from "@lucide/vue"
import {
visibleWaterfallRows,
Waterfall,
WaterfallBar,
WaterfallIndicator,
WaterfallRow,
WaterfallRowHeader,
type ListHighlightDetails,
type WaterfallData,
} from "@ui-sdk/vue/waterfall"
import { computed, ref } from "vue"
const trace: WaterfallData = Array.from({ length: 2000 }, (_, job) => ({
value: `job-${job + 1}`,
label: `job ${job + 1}`,
start: job * 4,
duration: 60,
children: Array.from({ length: 4 }, (_, step) => ({
value: `job-${job + 1}/step-${step + 1}`,
label: `step ${step + 1}`,
start: job * 4 + step * 15,
duration: 15,
})),
}))
const row = 32
const height = 288
const scroller = ref<HTMLDivElement | null>(null)
const scrollTop = ref(0)
const expanded = ref(["job-1"])
const rows = computed(() => visibleWaterfallRows(trace, expanded.value))
const visible = computed(() => {
const start = Math.max(0, Math.floor(scrollTop.value / row) - 4)
const end = Math.min(
rows.value.length,
Math.ceil((scrollTop.value + height) / row) + 4
)
return rows.value.slice(start, end)
})
function onHighlight(_value: string, { index }: ListHighlightDetails) {
const el = scroller.value
if (!el) {
return
}
const top = index * row
if (top < el.scrollTop) {
el.scrollTop = top
} else if (top + row > el.scrollTop + el.clientHeight) {
el.scrollTop = top + row - el.clientHeight
}
scrollTop.value = el.scrollTop
}
</script>
<template>
<div
ref="scroller"
data-slot="scroll"
@scroll="scrollTop = ($event.currentTarget as HTMLDivElement).scrollTop"
>
<Waterfall
v-model:expanded="expanded"
aria-label="Build trace"
:aria-rowcount="rows.length"
:items="trace"
:range="[0, 400]"
:style="{ height: `${rows.length * row}px` }"
@highlight="onHighlight"
>
<WaterfallRow
v-for="{ item, index } in visible"
:key="item.value"
:value="item.value"
:aria-rowindex="index + 1"
:style="{ top: `${index * row}px` }"
>
<WaterfallRowHeader>
<WaterfallIndicator v-if="item.children">
<ChevronRightIcon aria-hidden="true" />
</WaterfallIndicator>
{{ item.label }}
</WaterfallRowHeader>
<WaterfallBar />
</WaterfallRow>
</Waterfall>
</div>
</template>Controlled
Selection and expanded spans are independent:
| Value | Shape | Change Notification |
|---|---|---|
value | A string or null. | @value-change |
expanded | An array of span values. | @expanded-change |
Bind one with v-model:value or v-model:expanded to control it, or use default-value and default-expanded for starting state. Call details.cancel() in a change handler to reject a change. State and Events covers the shared binding pattern.
Controller
A createWaterfallController() instance can expand or collapse spans, change the selection, or focus a row. reveal(value) opens a span's ancestors and focuses its row. The Nested Spans example uses one for Expand All and Collapse All. See Controllers for setup and lifecycle.
Custom Rendering
Every part takes a #render slot, and its default slot receives its state. See Parts and Composition for prop merging and state-based rendering.
Styling
Style a row's state from its data-selected, data-expanded, data-branch and data-level, which its header, indicator, cells and bar carry too. Focus moves between rows and cells, so style a focused one with :focus-visible. Indent a row's header with --waterfall-level, and place its bar with --waterfall-start and --waterfall-size.
Each part has a data-slot, such as waterfall-row, and its state attributes are listed under Data Attributes.
WaterfallTick
| Variable | What it holds |
|---|---|
--waterfall-tick | Where the tick's time sits on the axis, as a percentage. Use it for inset-inline-start. |
WaterfallMark
| Variable | What it holds |
|---|---|
--waterfall-mark | Where the mark's time sits on the axis, as a percentage. Use it for inset-inline-start. |
WaterfallRow
| Variable | What it holds |
|---|---|
--waterfall-level | The span's depth, from 1 at the top level. Use it to indent the row's header. |
--waterfall-start | Where the span starts on the axis, as a percentage, clamped to the range. Use it for the bar's inset-inline-start. |
--waterfall-size | How much of the axis the span covers, as a percentage. Use it for the bar's width. Zero for a span outside the range. |
Data Attributes
WaterfallMark
[data-slot="waterfall-mark"]
| Attribute | What it means |
|---|---|
data-outside | Present while the mark's time is outside the range, so it doesn't show on the axis. |
WaterfallRow
[data-slot="waterfall-row"]
| Attribute | What it means |
|---|---|
data-level | 12The span's depth, from 1 at the top level. Also in the --waterfall-level variable. |
data-branch | Present on a span with children. |
data-expanded | Present while a span with children is expanded. |
data-selected | Present on the selected span's row and its parts. |
WaterfallRowHeader
[data-slot="waterfall-row-header"]
| Attribute | What it means |
|---|---|
data-level | 12The span's depth, from 1 at the top level. Also in the --waterfall-level variable. |
data-branch | Present on a span with children. |
data-expanded | Present while a span with children is expanded. |
data-selected | Present on the selected span's row and its parts. |
WaterfallIndicator
[data-slot="waterfall-indicator"]
| Attribute | What it means |
|---|---|
data-level | 1The span's depth, from 1 at the top level. Also in the --waterfall-level variable. |
data-branch | Present on a span with children. |
data-expanded | Present while a span with children is expanded. |
WaterfallCell
[data-slot="waterfall-cell"]
| Attribute | What it means |
|---|---|
data-level | 12The span's depth, from 1 at the top level. Also in the --waterfall-level variable. |
data-branch | Present on a span with children. |
data-expanded | Present while a span with children is expanded. |
data-selected | Present on the selected span's row and its parts. |
WaterfallBar
[data-slot="waterfall-bar"]
| Attribute | What it means |
|---|---|
data-level | 12The span's depth, from 1 at the top level. Also in the --waterfall-level variable. |
data-branch | Present on a span with children. |
data-expanded | Present while a span with children is expanded. |
data-selected | Present on the selected span's row and its parts. |
API Reference
Waterfall
itemsWaterfallData- The spans, each with a
value, alabel, astart, adurationand the spans it started aschildren. range?[number, number]- The stretch of time the axis shows, as
[start, end]in milliseconds. Bars outside it shrink to its edges. Change it to zoom or pan. value?string | null- The selected span's value. Pass it to control the selection.
nullselects nothing. defaultValue?string | null- The span selected at first, when uncontrolled.
@value-change((value: string | null, details: ChangeDetails<WaterfallValueChangeReason>) => void)- Runs when the selection wants to change.
details.reasonsays why, anddetails.cancel()stops it. expanded?string[]- The expanded spans' values. Pass it to control which spans show their children.
defaultExpanded?string[]- The spans expanded at first, when uncontrolled.
@expanded-change((expanded: string[], details: ChangeDetails<WaterfallExpandedChangeReason>) => void)- Runs when spans want to expand or collapse.
details.reasonsays why, anddetails.cancel()stops it. @highlight((value: string, details: ListHighlightDetails) => void)- Runs when the keyboard moves focus to a row, with its place among the rows that show, from 0. A waterfall that renders only the rows in view scrolls that row into view here, so it can take focus once it renders.
format?NumberFormat- How times read on the axis and to screen readers:
Intl.NumberFormatoptions for a number of milliseconds, or a function of it. locale?string- The locale times are formatted in. Defaults to the page's
lang, or the browser's language without one, once the page is interactive. Server markup uses English until then, so it never disagrees with the client. getBarLabel?((item: WaterfallDataItem, details: WaterfallBarLabelDetails) => string)- What screen readers hear for a span's bar. Set it in the page's language.
controller?object- Drives the waterfall from anywhere. Create one with
createWaterfallController(). debug?boolean- Logs every state change with its reason to the console, in development builds.
WaterfallAxis
maxTicks?number- The most ticks the axis shows. Ticks fall on round times, so it may show fewer.
WaterfallTick and WaterfallMark
timenumber- The moment it marks, in milliseconds.
WaterfallRow
valuestring- The value of the span the row shows.
Items as Data
Each span in items:
valuestring- Identifies the span. Unique in the waterfall.
labelstring- What its row shows, and what typeahead matches.
startnumber- When it starts, in milliseconds, on the same clock as every other span.
durationnumber- How long it lasts, in milliseconds.
children?WaterfallDataItem[]- The spans it started. Leave it out for a span with none.
Each row visibleWaterfallRows(items, expanded) returns:
itemWaterfallDataItem- The span this row shows, the same object you passed in.
parentstring | null- The value of the span it's nested in, or
nullat the top level. levelnumber- Its depth, 1 at the top level.
indexnumber- Its place among the rows that show, from 0.
State
What render functions, state-based class names and slots receive, per part.
Waterfall:
range[number, number]- The stretch of time the axis shows, as
[start, end]in milliseconds.
WaterfallAxis:
ticksWaterfallTickData[]- The ticks it shows, at round times inside the range.
WaterfallTick and WaterfallMark:
timenumber- The moment it marks, in milliseconds.
labelstring- The time as
formatand the locale show it. positionnumber- Where it sits between the range's start and end, from 0 to 100.
outsideboolean- Whether its time is outside the range, so it doesn't show on the axis.
WaterfallRow, and its WaterfallRowHeader, WaterfallIndicator, WaterfallCell and WaterfallBar:
expandedboolean- Whether it's a span with children that's expanded.
selectedboolean- Whether it's the selected span.
branchboolean- Whether its span has children.
levelnumber- Its depth, 1 at the top level.
Reasons
Why spans expanded or collapsed:
trigger-pressMouseEvent | KeyboardEvent | TouchEvent- Click, tap, Enter or Space on the part that opens, closes or toggles. Arrow keys that open a menu or submenu count too. A tap on a combobox's input that opens a sheet reports its
touchend. list-navigationKeyboardEvent- Arrow, Home or End keys moved the selection, typing picked an item, or Ctrl or โ with A selected every item of a listbox.
imperativenone- A controller or
apicall, or a property set on a web component.
Why the selection changed:
imperativenone- A controller or
apicall, or a property set on a web component. item-pressMouseEvent | KeyboardEvent- A member of a collection was chosen: a menu item, a tab, a radio or a checkbox item.
Controller
Create one with createWaterfallController() and pass it as controller.
getValue()() => string | null- The selected span's value, or
null. setValue(value, options?)(value: string | null, options?: WaterfallChangeOptions<WaterfallValueChangeReason> | undefined) => boolean- Selects a span, or nothing with
null. Returns false when canceled. getExpanded()() => string[]- The values of the expanded spans.
setExpanded(expanded, options?)(expanded: string[], options?: WaterfallChangeOptions<WaterfallExpandedChangeReason> | undefined) => boolean- Expands exactly these spans. Returns false when canceled.
isExpanded(value)(value: string) => boolean- Whether a span is expanded.
expand(value, options?)(value: string, options?: WaterfallChangeOptions<WaterfallExpandedChangeReason> | undefined) => boolean- Expands a span.
collapse(value, options?)(value: string, options?: WaterfallChangeOptions<WaterfallExpandedChangeReason> | undefined) => boolean- Collapses a span. Focus inside it moves to its row.
toggle(value, options?)(value: string, options?: WaterfallChangeOptions<WaterfallExpandedChangeReason> | undefined) => boolean- Expands a collapsed span, or collapses an expanded one.
expandAll(options?)(options?: WaterfallChangeOptions<WaterfallExpandedChangeReason> | undefined) => boolean- Expands every span with children.
collapseAll(options?)(options?: WaterfallChangeOptions<WaterfallExpandedChangeReason> | undefined) => boolean- Collapses every span.
reveal(value)(value: string) => void- Expands a span's ancestors and focuses its row, through
onHighlightwhen it isn't rendered. focus(value?)(value?: string | undefined) => void- Focuses a span's row, or the row with the tab stop.
Accessibility
The waterfall follows the WAI-ARIA treegrid pattern. Rows have the row role with aria-level, aria-posinset, aria-setsize, aria-selected="true" on the selected row, and aria-expanded on spans with children. WaterfallRowHeader is a rowheader, so screen readers repeat the span's name as focus moves down a column, and each WaterfallBar is a gridcell labeled with when its span starts and how long it lasts, like "Starts at 120 ms, lasts 340 ms". Times are formatted with Intl in the page's language.
Keyboard
The waterfall has one tab stop. Tab enters at the selected row, or the first row, then returns to the row or cell focused last.
| Key | Action |
|---|---|
| Down / Up Arrow | Focus the next or previous row. In a cell, keep the column. |
| Right Arrow | On a row, expand it, or move into its first cell. In a cell, move right. |
| Left Arrow | In a cell, move left, then back to the row. On a row, collapse it, or focus its parent. |
| Home / End | Focus the first or last row. In a cell, the row's first or last cell. |
| Ctrl+Home / Ctrl+End | Focus the first or last row, keeping the column. |
| Page Up / Page Down | Move a page of rows. |
| Enter / Space | Select the row. |
| Typing | Focus the next row whose label starts with that text. |
Command replaces Ctrl on a Mac. In right-to-left text, Left and Right swap.
Tested Behavior
Every line below is an automated test.
- Spans start collapsed, and only top-level rows show.
- Clicking the indicator expands a span without selecting it.
- Clicking a row's cell selects the row and focuses the cell.
- A change can be canceled.
- A controller expands and collapses everything, and reveals a span.
- Collapsing a span from its indicator moves focus out of it.
- The waterfall is one tab stop.
- Down and Up move between rows, Home and End to the first and last.
- Right expands a collapsed row, then moves into its cells.
- Left moves back through the cells to the row, collapses it, then moves to the parent.
- Down and Up in a cell keep its column.
- Home and End in a cell go to the row's ends, and with Control to the column's.
- A focused cell keeps the tab stop.
- A cell hidden by a collapse gives up the tab stop.
- Enter and Space select the focused row.
- Typing moves to the next row whose name starts with it.
- Each row places its bar as a share of the range.
- Each bar tells screen readers when its span starts and how long it lasts.
- The axis shows round times, hidden from screen readers.
Runs in React, Vue and web components.