This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

react-scroll-design
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

react-custom-scrollbar

A React replacement for the browser's native scrollbar.

npm npm version download npm bundle size dumi

Document

English document | 中文文档

Install

npm install react-scroll-design
yarn add react-scroll-design
pnpm add react-scroll-design

Usage

This is the most basic way to use it, please check the document for more usage examples.

import { ScrollContainer } from 'react-scroll-design';

export default () => (
  <ScrollContainer height={400}>
    {/* Simply replace the content with your own. */}
    {new Array(20).fill(1).map((item, index) => {
      return (
        <div key={index} className="example-scrollbar-demo-item">
          {index + 1}
        </div>
      );
    })}
  </ScrollContainer>
);

Package Sidebar

Install

npm i react-scroll-design

Weekly Downloads

9

Version

2.2.0

License

MIT

Unpacked Size

39.1 kB

Total Files

22

Last publish

Collaborators

  • ddbor