Sequence
docs
Astro components

Back to top

A button that scrolls to the top of the page.

A floating button that appears when the user scrolls down and allows them to quickly scroll back to the top of the page.

Usage

---
import BackToTop from '@/components/BackToTop.astro';
---

<BackToTop />

Props

PropTypeDefaultDescription
class?string-Additional CSS classes for the button.

On this page