Pages
Ui.ScrollToTop
A button to scroll to the top of the page.
- It's only visible if the page is scrolled.
- It's positioned on the bottom right corner of the page.
States
We have a state for the scroll position.
Properties
Whether or not to display the button globally.
The size of the content.
The treshold (scroll position) to show the button.
The z-index of the component.
Functions
Scrolls to the top of the page.
Renders the component.
Updates the scroll position.