Toggle Sidebar B
header.lightDarkMode D

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

PropTypeDefaultDescription
thresholdnumber400Scroll Y in px before the button appears.