improve readme

This commit is contained in:
Rene Haas
2022-11-17 09:19:40 +01:00
parent 26f42d09c0
commit c6232bd3c0
+2 -2
View File
@@ -65,7 +65,7 @@ import { OverlayScrollbarsComponent } from "overlayscrollbars-react";
### Properties
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.
- `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 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.
- `events`: accepts an `object` which represents the OverlayScrollbars events.