mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-19 20:20:36 +03:00
improve readme
This commit is contained in:
@@ -65,7 +65,7 @@ import { OverlayScrollbarsComponent } from "overlayscrollbars-react";
|
|||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
The component accepts all properties of intrinsic JSX elements such as `div` and `span`.
|
The component accepts all properties of intrinsic JSX elements such as `div` and `span`.
|
||||||
Additionally it has three optional properties: `element`, `options` and `events`.
|
Additionally it has custom optional properties:
|
||||||
|
|
||||||
- `element`: accepts a `string` which represents the tag of the root element.
|
- `element`: accepts a `string` which represents the tag of the root element.
|
||||||
- `options`: accepts an `object` which represents the OverlayScrollbars options.
|
- `options`: accepts an `object` which represents the OverlayScrollbars options.
|
||||||
@@ -121,7 +121,7 @@ The hook will destroy the instance automatically if the component unmounts.
|
|||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
Parameters are optional and similar to the `OverlayScrollbarsComponent`.
|
Parameters are optional and similar to the `OverlayScrollbarsComponent`.
|
||||||
Its an `object` with two optional properties:
|
Its an `object` with optional properties:
|
||||||
|
|
||||||
- `options`: accepts an `object` which represents the OverlayScrollbars options.
|
- `options`: accepts an `object` which represents the OverlayScrollbars options.
|
||||||
- `events`: accepts an `object` which represents the OverlayScrollbars events.
|
- `events`: accepts an `object` which represents the OverlayScrollbars events.
|
||||||
|
|||||||
Reference in New Issue
Block a user