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

flowscrollbar

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flowscrollbar

A customizable React scrollbar component that supports both vertical and horizontal scrolling with drag functionality.

latest
npmnpm
Version
1.0.7
Version published
Maintainers
0
Created
Source

Scrollbar Component

A customizable React scrollbar component that supports both vertical and horizontal scrolling with drag functionality.

Installation

You can install this package via npm:

npm i flowscrollbar

Usage

import React from "react";
import Scrollbar from "flowscrollbar";


function App() {
  return (
    <Scrollbar height={300} width={500} onScrollYEnd={() => console.log("Reached Y end!")}>
      <div style={{ width: "800px", height: "600px" }}>
        {/* Your scrollable content here */}
        <p>Scrollable Content...</p>
      </div>
    </Scrollbar>
  );
}

export default App;

Props

PropTypeDescription
heightnumberSets the height of the scrollbar container.
widthnumberSets the width of the scrollbar container.
styleobjectCustom styling for the scrollbar track and thumb.
onScrollYEndfuncCallback when vertical scrolling reaches the end.
onScrollXEndfuncCallback when horizontal scrolling reaches the end.
beforeEndOffsetnumberOffset before triggering onScrollYEnd or onScrollXEnd.
onScrollfuncCallback triggered on scroll events.

Features

  • Customizable scrollbar appearance
  • Drag functionality for scrolling
  • Supports both vertical and horizontal scrolling
  • Triggers events when reaching scroll limits
  • Fully responsive

Contributing

Contributions are welcome! Feel free to submit a pull request or open an issue.

Author

Developed by Akshay Soni

Keywords

react

FAQs

Package last updated on 31 Jan 2025

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