Overview Button Copy button Field Input Number field Textarea Select Combobox Multiselect Date picker Date range picker Date-time picker Checkbox Radio group Position picker Switch Slider Dropzone Device controls Avatar Badge Card Collapsible Kbd Map Matrix Proportion bar Separator Stat Table Timeline Chat Playback Pagination Charts Chart theming Profile chart Time series chart Bar chart Isopleth chart TS diagram Box plot Rose chart Calendar chart Banner Toast Loader Progress Skeleton Empty state Error state Dropdown menu Tooltip Info tooltip Dialog Sheet Resizable Confirm dialog Breadcrumbs Command palette Mobile menu Navigation list Outline Scroll rail Sidebar Tabs
Scroll rail
A long list in miniature down its edge: a dash per item in its state’s colour, swelling under the pointer.
Beside a run
Run the pointer down the rail: the dashes swell under it and the waypoint at the crest is named. Click to jump.
- 1 Stokks.1 Done
- 2 Stokks.3 Done
- 3 General task Done
- 4 FN 13 (O-4) Done
- 5 Bømlo S Done
- 6 S8 Done
- 7 OH-12 Deviation
- 8 Refuelling Done
- 9 St.3 Done
- 10 Langn. Done
- 11 Fitjar Done
- 12 Vikafjord Done
- 13 S12 Done
- 14 OH-14 Done
- 15 St.7 Done
- 16 Rubbestad Under way
- 17 Hiskjo Next
- 18 S15 Next
- 19 Ølen Next
- 20 Skånevik Next
- 21 OH-18 Next
- 22 Etne Next
- 23 St.11 Next
- 24 Sydnes Next
- 25 Halsnøy Next
- 26 S20 Next
- 27 Ålfjorden Next
- 28 Bjoa Next
<div class="flex gap-4">
<ol>{#each waypoints as w}<li id={w.id} class="scroll-mt-20">…</li>{/each}</ol>
<ScrollRail class="sticky top-16" offset={80}
items={waypoints.map((w) => ({ id: w.id, label: w.name, status: w.status }))} />
</div> Rules
- For a long list of like things with a state each. Under about fifteen, the list itself is enough.
- At the list’s edge, sticky, on the right; the names open to the left.
- Only states that mean something get colour: done, a problem, under way. The rest stay grey.
- The rail is one stop for Tab: the arrows move the crest, Enter jumps.
- Point at it and the dashes swell like a dock: full length under the pointer, half for the neighbours, tapering off.