reactjs-custom-scrollbar
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

reactjs-custom-scrollbar

npm version npm npm All Contributors

Installation

NPM

To install the latest stable version:

npm install --save reactjs-custom-scrollbar

Basic usage:

import React, { Component } from 'react';
import Sticky from 'reactjs-custom-scrollbar';

const array = [1, 2, 3, 4, 5, 6, 7, 8];
const App = () => {
  return (
    <div>
      <Scrollbar style={{ height: '100px', width: '200px' }} autoHide>
        <div>
          {array.map(a => (
            <div
              key={a}
              style={{
                width: '100px',
                height: '100px',
                background: 'yellow',
                display: 'flex',
                flex: 'none',
              }}
            >
              {a}
            </div>
          ))}
        </div>
      </Scrollbar>
    </div>
  );
};
}

Readme

Keywords

Package Sidebar

Install

npm i reactjs-custom-scrollbar

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

229 kB

Total Files

19

Last publish

Collaborators

  • hunghg255