2.4.0 • Published 4 days ago

@s-ui/react-atom-back-to-top v2.4.0

Weekly downloads
34
License
MIT
Repository
-
Last release
4 days ago

AtomBackToTop

AtomBackToTop is a component that handles the scroll of a container and that it will be displayed only when needed

Installation

$ npm install @s-ui/react-atom-back-to-top --save

Usage

After importing the component AtomBackToTop like this

import AtomBackToTop, {backToTopStyles} from '@s-ui/react-atom-back-to-top'

Basic usage

<div id="container">
  <p>Very looong text...</p>
  <AtomBackToTop
    iconTop={iconTop}
    textTop="TOP"
    refContainer="container"
  />
</div>

Styles DARK (default) or LIGHT

<div id="container">
  <p>Very looong text...</p>
  <AtomBackToTop
    iconTop={iconTop}
    textTop="TOP"
    refContainer="container"
    style={backToTopStyles.LIGHT}
  />
</div>

Customizing minimum height when back to top button become visible → 1000px

<div id="container">
  <p>Very looong text...</p>
  <AtomBackToTop
    iconTop={iconTop}
    textTop="TOP"
    refContainer="container"
    minHeight={1000}
  />
</div>

Find full description and more examples in the demo page.

2.4.0

4 days ago

2.3.0

2 years ago

2.2.0

2 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.8.0

3 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

6 years ago