Scroll To Top
Floating button that scrolls the page to the top. Appears after the user scrolls past a threshold.
Default
Drop once at the page root. Becomes visible after 400px of scroll.
Scroll the page; the floating button will appear in the bottom-right.
API Reference
Props, events, and slots for each sub-component.
ScrollToTop
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| threshold | number | 400 | Scroll Y in px before the button appears. |