Scrollspy

Highlights the section in view.

API reference

Inputs

PropTypeDefaultDescription
itemsreadonly ScrollspyItem[][]Sections to track; each item links to and observes its `href` anchor.
labelstringAccessible label for the nav element; falls back to a localized default.

Types

ScrollspyItem

FieldTypeDescription
hrefstringIn-page anchor (e.g. `#section`) linked to and observed for visibility.
labelstringText shown for this entry in the navigation list.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.