Back to top
Installation
rh-back-to-top
Slot Name | Description |
---|---|
|
Text for the back to top link |
DOM Property | Description | Type | Default |
---|---|---|---|
visible |
Flag to always show back to top button, defaults to false. |
|
|
scrollableSelector |
Element selector to spy on for scrolling. Not passing a selector defaults to spying on window scroll events |
|
|
scrollDistance |
Distance from the top of the scrollable element to trigger the visibility of the back to top button |
|
|
href |
Page fragment link to target element, must include hash ex: #top |
|
|
None
None
Part Name | Description |
---|---|
trigger |
back to top link anchor element |
None
None
Other libraries
To learn more about our other libraries, visit the getting started page.