Default
Scroll down the page to make the ScrollToTopButton appear. This demo uses a tall container to simulate a real scroll environment.
default.tsx
<div style={{ height: "200vh", padding: "2rem" }}>
<p style={{ maxWidth: 600 }}>
Scroll down the page to make the ScrollToTopButton appear. This demo
uses a tall container to simulate a real scroll environment.
</p>
<ScrollToTop />
</div>