You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`ariaLabel`|`string`| title text or `"Table of contents"`| Accessible label on the nav element. |
37
39
|`minWidth`|`number`|`1140`| Hide below this viewport width (px). |
38
40
|`topOffset`|`number`|`52`| Fixed header height for scroll math. |
39
-
|`activeOffset`|`number`|`32`| Extra offset for deciding the active heading. |
41
+
|`activeBoundary`|`"viewport-start" \| "viewport-end"`|`"viewport-start"`| Boundary used for deciding the active heading. |
42
+
|`activeOffset`|`number`|`32`| Extra offset for deciding the active heading. With `viewport-end`, this is distance above the bottom edge. |
43
+
|`progressMode`|`"outline" \| "content"`|`"outline"`|`outline` follows the active TOC item. `content` fills by article reading progress. |
40
44
|`edge.hideBefore`|`boolean`|`true`| Hide before the article enters the viewport. |
41
45
|`edge.hideAfter`|`boolean`|`true`| Hide after the article leaves the viewport. |
46
+
|`edge.afterBoundary`|`"viewport-start" \| "viewport-end"`|`"viewport-start"`| Boundary used for after-content fade. Use `viewport-end` to fade when the article end reaches the bottom of the viewport. |
47
+
|`edge.afterOffset`|`number`|`0`| Extra distance after the after-boundary before fade starts. |
0 commit comments