New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-haze

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-haze

Easily show a fade at edges of lists to indicate scrollability

latest
Source
npmnpm
Version
2.0.3
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

react

FAQs

Package last updated on 13 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts