Actions
Back to top
A page short enough to see in one screen does not need this control, so it stays hidden until the reader has scrolled past a real threshold, then eases the viewport home rather than snapping it.
npx shadcn@latest add @minflow/back-to-topWhere to use it
- Long linear content: documentation, articles, chat history.
- Never on a paged or windowed screen, where there is no long scroll to return from.
Variations
Threshold reveal
The default. Appears past 600px of scroll and eases back to the top on click.