Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cegz-react-scrollbar

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cegz-react-scrollbar

A custom scroll bar component based on React.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

cegz-react-scrollbar

A custom scroll bar component based on React.

Install

Install from the npm registry with your package manager:

npm install cegz-react-scrollbar
# or
yarn add cegz-react-scrollbar
# or
pnpm add cegz-react-scrollbar

Usage

import React from "react";
import ReactDOM from "react-dom/client";
import Scrollbar from "cegz-react-scrollbar";

function App() {
  return (
    <Scrollbar style={{ width: 800, height: 500, background: "aliceblue" }}>
      {new Array(20).fill(0).map((item, index) => (
        <li key={index} style={{ width: 1000, height: 50 }}>
          item {index + 1}
        </li>
      ))}
    </Scrollbar>
  );
}

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
  <React.Fragment>
    <App />
  </React.Fragment>
);

Keywords

FAQs

Package last updated on 31 May 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc