Skip to content

Commit

Permalink
package renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Jul 7, 2018
1 parent e2e211f commit 9577479
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 27 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<h1 align="center">react-scrollbar-custom</h1>
<h1 align="center">react-scrollbars-custom</h1>
<p align="center">
<a href="https://www.npmjs.com/package/react-scrollbar-custom"><img src="https://img.shields.io/badge/npm-react--scrollbar--custom-brightgreen.svg" /></a>
<a href="https://www.npmjs.com/package/react-scrollbar-custom"><img src="https://img.shields.io/npm/l/react-scrollbar-custom.svg" /></a>
<a href="https://www.npmjs.com/package/react-scrollbar-custom"><img src="https://img.shields.io/npm/v/react-scrollbar-custom.svg" /></a>
<a href="https://www.npmjs.com/package/react-scrollbar-custom"><img src="https://img.shields.io/npm/dt/react-scrollbar-custom.svg" /></a>
<a href="https://www.npmjs.com/package/react-scrollbars-custom"><img src="https://img.shields.io/badge/npm-react--scrollbar--custom-brightgreen.svg" /></a>
<a href="https://www.npmjs.com/package/react-scrollbars-custom"><img src="https://img.shields.io/npm/l/react-scrollbars-custom.svg" /></a>
<a href="https://www.npmjs.com/package/react-scrollbars-custom"><img src="https://img.shields.io/npm/v/react-scrollbars-custom.svg" /></a>
<a href="https://www.npmjs.com/package/react-scrollbars-custom"><img src="https://img.shields.io/npm/dt/react-scrollbars-custom.svg" /></a>
<a></a>
</p>
<p align="center">
Expand All @@ -21,14 +21,14 @@
## Installation
```bash
npm i --save react-scrollbar-custom
npm i --save react-scrollbars-custom
```

## Usage
Minimal configuration
```javascript
import React, { Component } from 'react';
import Scrollbar from 'react-scrollbar-custom';
import Scrollbar from 'react-scrollbars-custom';

class App extends Component
{
Expand Down
8 changes: 4 additions & 4 deletions docs/CUSTOMISATION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# CUSTOMISATION
`react-scrollbar-custom` is a fully customizable component, it consist of the following elements:
`react-scrollbars-custom` is a fully customizable component, it consist of the following elements:
* `holder` Holds content and scrollbars
* `wrapper` Wraps the content in order to hide browser's scrollbars
* `content` The element your content rendered in
Expand All @@ -12,7 +12,7 @@ Each of them (excepting holder) can be replaced and rendered with a function whi
4ex: if you want to change the className of elements.
```javascript
import React, { Component } from 'react';
import Scrollbar from 'react-scrollbar-custom';
import Scrollbar from 'react-scrollbars-custom';

class App extends Component
{
Expand All @@ -37,7 +37,7 @@ Component provides scroll controlling methods, a list of which you can find in t
To call them you have to make a reference to `<Scrollbar/>` component. Below you can see how to access component's methods and it's DOM elements:
```javascript
import React, { Component } from 'react';
import Scrollbar from 'react-scrollbar-custom';
import Scrollbar from 'react-scrollbars-custom';

class App extends Component
{
Expand All @@ -59,4 +59,4 @@ class App extends Component
return <Scrollbar ref="scrollbar"/>;
}
}
```
```
8 changes: 4 additions & 4 deletions docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
The `<Scrollbar />` component works out of the box, with only need of `width` and `height` to be set, inline or via CSS;
```javascript
import React, { Component } from 'react';
import Scrollbar from 'react-scrollbar-custom';
import Scrollbar from 'react-scrollbars-custom';

class App extends Component
{
Expand Down Expand Up @@ -42,7 +42,7 @@ Note, that if `scrollY={false}` and `scrollX={false}` will be set simultaneously
To customize scrollbars as you wish - you may want to turn off default styles.
```javascript
import React, { Component } from 'react';
import Scrollbar from 'react-scrollbar-custom';
import Scrollbar from 'react-scrollbars-custom';

class App extends Component
{
Expand Down Expand Up @@ -73,7 +73,7 @@ Styles presented in markup above are not removable and needed to proper componen
There are several events you can listen to. Each listener will be called _inside the animation frame_.
```javascript
import React, { Component } from 'react';
import Scrollbar from 'react-scrollbar-custom';
import Scrollbar from 'react-scrollbars-custom';

class App extends Component
{
Expand All @@ -93,7 +93,7 @@ class App extends Component
It is possible that DOM will be changed not only with React: for these cases `<Scrollbar />` has automatic content tracker.
```javascript
import React, { Component } from 'react';
import Scrollbar from 'react-scrollbar-custom';
import Scrollbar from 'react-scrollbars-custom';

class App extends Component
{
Expand Down
2 changes: 1 addition & 1 deletion examples/components/AutohideScrollbars/App.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/components/CustomStyleScrollbars/App.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/components/DefaultStyleScrollbars/App.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/components/SandboxScrollbars/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import Scrollbar from 'react-scrollbar-custom';
import Scrollbar from 'react-scrollbars-custom';

export default class App extends React.Component
{
Expand Down
8 changes: 4 additions & 4 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Examples react-scrollbar-custom</title>
<title>Examples react-scrollbars-custom</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
Expand All @@ -14,7 +14,7 @@

<body>
<div id="libHead">
<h1>react-scrollbar-custom</h1>
<h1>react-scrollbars-custom</h1>
<a href="https://github.com/xobotyi/react-scrollbars-custom"><i class="fa fa-github"></i></a>
</div>

Expand All @@ -23,9 +23,9 @@ <h1>react-scrollbar-custom</h1>
<div class="scrollers" id="appRoot"></div>

<div id="foot">
<a class="libLink" href="https://github.com/xobotyi/react-scrollbars-custom">react-scrollbar-custom</a><a class="authorLink" href="https://github.com/xobotyi">Anton Zinovyev</a>
<a class="libLink" href="https://github.com/xobotyi/react-scrollbars-custom">react-scrollbars-custom</a><a class="authorLink" href="https://github.com/xobotyi">Anton Zinovyev</a>
</div>
</body>

<script src="static/bundle.js"></script>
</html>
</html>
4 changes: 2 additions & 2 deletions examples/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
},
resolve: {
alias: {
"react-scrollbar-custom": path.join(__dirname, '..', 'src'),
"react-scrollbars-custom": path.join(__dirname, '..', 'src'),
},
extensions: ['.js'],
},
Expand Down Expand Up @@ -47,4 +47,4 @@ module.exports = {
},
],
},
};
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-scrollbar-custom",
"name": "react-scrollbars-custom",
"description": "The best React custom scrollbars component",
"version": "1.2.0",
"repository": {
Expand Down

0 comments on commit 9577479

Please sign in to comment.