go-to-top-react

A lightweight and customizable React component that adds a 'Go to Top' button to your web application.


Keywords
React, Go To Top, Back To Top, Scroll Progress, Scrolling Indicator, Dynamic Back To Top, scroll up, scroll-to-top
License
ISC
Install
npm install go-to-top-react@1.0.3

Documentation

npm version code style: prettier

go-to-top-react

A lightweight and customizable React component that adds a "Go to Top" button to your web application.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

To install and set up the library, run:

devto

Installation

You can install the package via npm:

npm install go-to-top-react

Or you can install the package via yarn:

yarn add go-to-top-react
import React from "react";
import { GoToTop } from "go-to-top-react";

function App() {
  return (
    <div>
      <h1>Welcome to My App</h1>
      {/* Other content */}
      <GoToTop />

      {/* Add any custom css class */}
      {/* <GoToTop className='your-custom-class'/>*/}
    </div>
  );
}

export default App;

Authors

GitHub

This README provides a basic overview of the application, including installation instructions, usage examples, and information about the features and license. You can further customize it with additional details as needed.