Skip to content
UTILITIES · FREE

ScrollToTop

A button that takes readers back to the top.

A floating button that appears after scrolling and takes readers back to the top.

Why it helps

  • Appears when needed
  • One click
  • Simple

Where it fits

  • Long pages
  • Lists
  • Docs

Example

<p>Scroll down this page: after 100 px a button appears in the lower right corner and returns you to the top.</p>
<ScrollToTop Threshold="100" />

A short fragment. Add @using RayCraft.Blazor.Components to your page and use an interactive render mode.

Included in RayCraft Free. Working examples are in the GitHub repository (MIT); it holds example and demo code, not the library code.

All controls ยท Documentation