BackToTop
This component is used to add a back to top button to your project. Use the offset
prop to change the offset to show the back to top button.
Import
Usage
You can change the styles via the className
prop with Tailwind CSS classes.
Props
offset
- offset?
-
number
The offset to show the back to top button. Value must be between 0 and 1.
Default:
0.2