ScrollSpy
FreeAn in-page contents list that highlights the heading currently at the top of the screen. It finds the headings with a CSS selector (headings need an id), marks the current link with aria-current and links with plain fragments, so it works without scripts too. Call RefreshAsync after the headings change.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
Class | string | Extra CSS classes added to the root element. |
Label | string | Visible label text (charts: accessible name; IconButton: accessible name and tooltip). |
Offset | int | Distance from the top, in pixels, at which a heading counts as current (default 80). |
Selector | string | CSS selector of the headings to list (default main h2[id], main h3[id]). |
Style | string | Inline style added to the root element. |
Package
ScrollSpy is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Send feedbackVersion 1.0.3