go-to-top-react

0.0.1 • Public • Published

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.

Package Sidebar

Install

npm i go-to-top-react

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

9.48 kB

Total Files

7

Last publish

Collaborators

  • slsuyel