Pages
mint-ui
Search
Basic information
Entities
Versions
Dependencies
mint-color
0.8.0 <= v < 1.0.0
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 threshold (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.