0.4.0 • Published 3 years ago

react-scrollup-lite v0.4.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

react-scrollup-lite

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

NPM JavaScript Style Guide

Install

npm install --save react-scrollup-lite

Usage

import React, { Component } from 'react';

import ScrollUp from 'react-scrollup-lite';

class Example extends Component {
    render() {
        return (
            <ScrollUp
                startPosition={0}
                showAtPosition={10}
                position='right'
                className='scroll-up'
                style={{
                    right: '20px',
                }}
            >
                <button>Scroll up</button>
            </ScrollUp>
        );
    }
}

Proptypes

PropsTypeDescription
startPositionnumberstart position to scroll up
showAtPositionnumberwhen scrolling the page at what position component children should be visible
position (optional)stringleft or right (where to show the children component) (default - right)

License

MIT © Madan Kumar

0.4.0

3 years ago

0.3.0

3 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago