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
import { BackToTop } from "@aeonkit/core";Usage
You can change the styles via the className prop with Tailwind CSS classes.
<BackToTop />Props
offset
- offset?
-
numberThe offset to show the back to top button. Value must be between 0 and 1.
Default:
0.2