minflow

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-top

Where 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.

Scroll this page past the fold; the control appears in the trailing gutter, bottom right.