Below example does not demonstrate functionality see React demos for a full demonstration.
Back to top only shows after overflowing element has been scrolled 400px.
Examples
Props
BackToTop
Name | Type | Default | Description |
---|---|---|---|
className | string | Additional classes added to the back to top. | |
isAlwaysVisible | boolean | Flag to always show back to top button, defaults to false. | |
scrollableSelector | string | Selector for the scrollable element to spy on. Not passing a selector defaults to spying on window scroll events. | |
title | string | Title to appear in back to top button. |
CSS variables
Expand or collapse column | Selector | Variable | Value |
---|