# XWUIAnchor

Table-of-contents anchor nav with scroll-spy that highlights the active section.

## Basic Usage

Three sections with nested children.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Three sections with nested children.
```

## Affixed Sidebar

An affixed table-of-contents whose links smooth-scroll to sections with an 80px target offset.

```example
file: examples/AffixedSidebar.ts
html: examples/AffixedSidebar.html
title: Affixed Sidebar
description: An affixed table-of-contents whose links smooth-scroll to sections with an 80px target offset.
```

## Scroll-Spy Sections

A flat anchor list that highlights the active section as you scroll, using a wider bounds threshold.

```example
file: examples/ScrollSpySections.ts
html: examples/ScrollSpySections.html
title: Scroll-Spy Sections
description: A flat anchor list that highlights the active section as you scroll, using a wider bounds threshold.
```

```api
```
