Skip to content

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

Terminal window
import { BackToTop } from "@aeonkit/core";

Usage

You can change the styles via the className prop with Tailwind CSS classes.

Terminal window
<BackToTop />

Props

offset

offset?

number

The offset to show the back to top button. Value must be between 0 and 1.

Default: 0.2