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.
---
import BackToTop from '@/components/BackToTop.astro';
---
<BackToTop />
| Prop | Type | Default | Description |
|---|
class? | string | - | Additional CSS classes for the button. |