Skip to content

Commit 15a0332

Browse files
committed
docs: Update README.md and docs
1 parent d9d241c commit 15a0332

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This assumes that you’re using [npm](http://npmjs.com/) package manager with a
3333
This is the minimal configuration. [Check out the Documentation for advanced usage](https://github.com/sakhnyuk/rc-scrollbars/tree/master/docs).
3434

3535
```jsx
36-
import { Scrollbars } from 'react-custom-scrollbars';
36+
import { Scrollbars } from 'rc-scrollbars';
3737

3838
class App extends Component {
3939
render() {
@@ -49,7 +49,7 @@ class App extends Component {
4949
The `<Scrollbars>` component is completely customizable. Check out the following code:
5050

5151
```jsx
52-
import { Scrollbars } from 'react-custom-scrollbars';
52+
import { Scrollbars } from 'rc-scrollbars';
5353

5454
class CustomScrollbars extends Component {
5555
render() {

docs/customization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The `<Scrollbars>` component consists of the following elements:
1111
Each element can be **rendered individually** with a function that you pass to the component. Say, you want use your own `className` for each element:
1212

1313
```typescript jsx
14-
import { Scrollbars } from 'react-custom-scrollbars';
14+
import { Scrollbars } from 'rc-scrollbars';
1515
import './styles.css'
1616

1717
class CustomScrollbars extends Component {
@@ -46,7 +46,7 @@ This is because we need to pass some default `styles` down to the element in ord
4646
If you are working with **inline styles**, you could do something like this:
4747

4848
```javascript
49-
import { Scrollbars } from 'react-custom-scrollbars';
49+
import { Scrollbars } from 'rc-scrollbars';
5050

5151
class CustomScrollbars extends Component {
5252
render() {
@@ -67,7 +67,7 @@ class CustomScrollbars extends Component {
6767
If you want to change the appearance in respond to the scrolling position, you could do that like:
6868

6969
```javascript
70-
import { Scrollbars } from 'react-custom-scrollbars';
70+
import { Scrollbars } from 'rc-scrollbars';
7171
class CustomScrollbars extends Component {
7272
constructor(props, context) {
7373
super(props, context)

docs/usage.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The `<Scrollbars>` component works out of the box with some default styles. The only thing you need to care about is that the component has a `width` and `height`:
66

77
```jsx
8-
import { Scrollbars } from 'react-custom-scrollbars';
8+
import { Scrollbars } from 'rc-scrollbars';
99

1010
class App extends Component {
1111
render() {
@@ -31,7 +31,7 @@ Also don't forget to set the `viewport` meta tag, if you want to **support mobil
3131
There are several events you can listen to:
3232

3333
```jsx
34-
import { Scrollbars } from 'react-custom-scrollbars';
34+
import { Scrollbars } from 'rc-scrollbars';
3535

3636
class App extends Component {
3737
render() {
@@ -60,7 +60,7 @@ class App extends Component {
6060
You can activate auto-hide by setting the `autoHide` property.
6161

6262
```jsx
63-
import { Scrollbars } from 'react-custom-scrollbars';
63+
import { Scrollbars } from 'rc-scrollbars';
6464

6565
class App extends Component {
6666
render() {
@@ -83,7 +83,7 @@ class App extends Component {
8383

8484
You can activate auto-height by setting the `autoHeight` property.
8585
```jsx
86-
import { Scrollbars } from 'react-custom-scrollbars';
86+
import { Scrollbars } from 'rc-scrollbars';
8787

8888
class App extends Component {
8989
render() {
@@ -105,7 +105,7 @@ class App extends Component {
105105
If your app runs on both client and server, activate the `universal` mode. This will ensure that the initial markup on client and server are the same:
106106

107107
```jsx
108-
import { Scrollbars } from 'react-custom-scrollbars';
108+
import { Scrollbars } from 'rc-scrollbars';
109109

110110
class App extends Component {
111111
render() {

0 commit comments

Comments
 (0)