# @types/react-smooth-scrollbar

> TypeScript definitions for react-smooth-scrollbar

Latest version **8.0.6** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-smooth-scrollbar
pnpm add @types/react-smooth-scrollbar
yarn add @types/react-smooth-scrollbar
bun add @types/react-smooth-scrollbar
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 8.0.6 |
| Published | 2023-11-07 |
| First published | 2017-01-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-smooth-scrollbar
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-smooth-scrollbar
- npm.io page: https://npm.io/package/@types/react-smooth-scrollbar

## Dependencies (2)

- [@types/react](https://npm.io/package/@types/react.md) *
- [smooth-scrollbar](https://npm.io/package/smooth-scrollbar.md) ^8.2.5

## Recent versions

- 8.0.6 (latest) — 2023-11-07
- 8.0.4 (ts3.7) — 2021-10-07
- 8.0.3 (ts3.6) — 2021-07-08
- 8.0.2 (ts2.8) — 2018-08-06
- 8.0.1 (ts2.6) — 2018-02-12
- 8.0.0 (ts2.3) — 2018-01-02
- 7.2.2 (ts2.1) — 2017-03-30
- 7.2.0 (ts2.0) — 2017-01-11
- 8.0.5 — 2023-10-18
- 7.2.3 — 2017-06-23
- 7.2.1 — 2017-01-23

## README

# Installation
> `npm install --save @types/react-smooth-scrollbar`

# Summary
This package contains type definitions for react-smooth-scrollbar (https://github.com/idiotWu/react-smooth-scrollbar).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-smooth-scrollbar.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-smooth-scrollbar/index.d.ts)
````ts
import * as React from "react";
import SmoothScrollbar from "smooth-scrollbar";
import { ScrollbarOptions, ScrollStatus } from "smooth-scrollbar/interfaces";

declare namespace Scrollbar {
    interface ScrollbarProps extends Partial<ScrollbarOptions> {
        children?: React.ReactNode;
        /**
         * Pipe to scrollbar.addListener()
         */
        onScroll?(status: ScrollStatus, scrollbarInstance: SmoothScrollbar): void;
        /**
         * Keep scrollbar tracks visible whether it's scrolling or not
         * @default false
         */
        alwaysShowTracks?: boolean | undefined;
        /**
         * Optional class name
         */
        className?: string | undefined;
        /**
         * Optional style
         */
        style?: React.CSSProperties | undefined;
    }
}

declare class Scrollbar extends React.Component<Scrollbar.ScrollbarProps> {
    /**
     * Scrollbar instance
     */
    readonly scrollbar: SmoothScrollbar;
}

export as namespace Scrollbar;
export = Scrollbar;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react), [smooth-scrollbar](https://npmjs.com/package/smooth-scrollbar)

# Credits
These definitions were written by [Alexey Svetliakov](https://github.com/asvetliakov).

---
_Source: https://npm.io/package/@types/react-smooth-scrollbar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
