2.0.3 • Published 2 years ago

react-haze v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Logo

React Haze

Easily show a fade at edges of lists to indicate scrollability

Features

  • Set a pixel offset for when the fade is triggerd
  • Choose the fade color and size
  • Works horizontally or vertially

Installation

Install with npm or yarn

npm install react-haze
yarn add react-haze

Import the Haze component

import Haze from "react-haze";

Wrap a non-scrolling container with the haze component and choose props according to your preference.

<Haze
  orientation="horizontal"
  scrollOffset={20}
  gradientSize={50}
  gradientColor="rgb(255, 254, 249)"
>
  {/* You content goes here */}
</Haze>

Demo

There is a CodeSandBox demo here

License

MIT

Contributing

Contributions are always welcome!

See CONTRIBUTING.md for ways to get started.

Feedback

If you have any feedback, please create an issue reach me on twitter.

2.0.3

2 years ago

2.0.2

3 years ago

2.0.1

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

1.1.2

3 years ago

2.0.0

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago