An open API service indexing awesome lists of open source software.

https://github.com/jmadankumar/react-scrollup-lite

React wrapper component to scroll up
https://github.com/jmadankumar/react-scrollup-lite

component package react scrollup

Last synced: 5 months ago
JSON representation

React wrapper component to scroll up

Awesome Lists containing this project

README

          

# react-scrollup-lite

> React wrapper component to scroll up/top when user scrolls the page

[![NPM](https://img.shields.io/npm/v/react-scrollup-lite.svg)](https://www.npmjs.com/package/react-scrollup-lite) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save react-scrollup-lite
```

## Usage

```jsx
import React, { Component } from 'react';

import ScrollUp from 'react-scrollup-lite';

class Example extends Component {
render() {
return (

Scroll up

);
}
}
```

## Proptypes

| Props | Type | Description |
| ------------------- | ------ | ----------------------------------------------------------------------------- |
| startPosition | number | start position to scroll up |
| showAtPosition | number | when scrolling the page at what position component children should be visible |
| position (optional) | string | left or right (where to show the children component) (default - right) |

## License

MIT © [Madan Kumar](https://github.com/jmadankumar)