next-scroll-to
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

NextScrollTo NPM Package

NextScrollTo is a lightweight React component designed to enhance user experience by providing a convenient way to scroll back to the top of the page. With automatic detection of scroll position, it displays a customizable button when the user reaches the bottom of the page.

Installation

Install ScrollToTop via npm:

npm install next-scroll-to

Usage

Simply import the ScrollToTop component and add it to your React application:

import * as React from "react";
import { ScrollToTop } from "next-scroll-to";

const App = () => {
  return (
    <div>
      {/* Your content */}
      <ScrollToTop />
    </div>
  );
};

export default App;

Features

  • Automatically detects when the user scrolls to the bottom of the page
  • Displays a customizable "Scroll to Top" button for easy navigation
  • Smooth scrolling animation provides a polished user experience

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i next-scroll-to

    Weekly Downloads

    2

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    3.99 kB

    Total Files

    9

    Last publish

    Collaborators

    • sami9999