# simply-paging

> A vertical focused ReactJS carousel

Latest version **0.2.4** (published 2018-10-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install simply-paging
pnpm add simply-paging
yarn add simply-paging
bun add simply-paging
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.4 |
| Published | 2018-10-15 |
| First published | 2018-09-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mario Lo |
| Maintainers | mariolo1985 |
| Keywords | carousel, javascript, next, paging, previous, react, ReactJS |

## Links

- npm: https://www.npmjs.com/package/simply-paging
- Repository: https://github.com/mariolo1985/Simply-Paging
- Homepage: https://github.com/mariolo1985/Simply-Paging#readme
- Issues: https://github.com/mariolo1985/Simply-Paging/issues
- npm.io page: https://npm.io/package/simply-paging

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.4 (latest) — 2018-10-15
- 0.2.3 — 2018-10-15
- 0.2.2 — 2018-10-14
- 0.2.1 — 2018-10-12
- 0.2.0 — 2018-10-12
- 0.1.7 — 2018-10-12
- 0.1.5 — 2018-10-12
- 0.1.4 — 2018-10-12
- 0.1.3 — 2018-10-12
- 0.1.2 — 2018-10-12
- 0.1.1 — 2018-10-12
- 0.1.0 — 2018-09-18
- 0.0.25 — 2018-09-18
- 0.0.21 — 2018-09-17
- 0.0.2 — 2018-09-17
- … 3 more at https://npm.io/package/simply-paging/versions

## README

# Simply Paging

A vertical focused ReactJS carousel.

A work-in-progress ReactJS module.

Built by: [Mario Lo](https://github.com/mariolo1985)

## Install

```
yarn add simply-paging
```

## Demo

![Demo][demo]

[demo]: https://raw.githubusercontent.com/mariolo1985/Simply-Paging/master/demo/images/demo_sm.gif "Simply Paging Demo"


## Example

```javascript
import React from 'react';
import { SimplyPaging } from 'simply-paging';

const app = ({
    pages
}) => (
    <SimplyPaging>
    {
        pages.map((page) => {
            <div className='page'>
                <h1>{page.name}</h1>
            </div>
        })
    }
    </SimplyPaging>
);

export default app;

```

This will wrap your `.page` inside a content box of **100vh**. Paging controls will be automatically added.

## Styles

At the moment, styles can be add one of two ways:

- Import the SCSS file

```javascript
@import '/node_modules/simply-paging/dist/scss/master.scss';
```


- Import the LESS file

```javascript
@import '/node_modules/simply-paging/dist/less/master.less';
```

- Copy the CSS directly from the following file

```
/node_modules/simply-paging/dist/css/master.min.css
```

## Functions

N/A

## Parameters

| Parameter Name   | Type   | Required   | Default Value   | Description   |
| --- | --- | --- | --- | --- |
| children | node | true | null | Children nodes to display per page |
| **WIP** vertical | boolean | false | true | Paging up and down is on by default |

**children**

`type: node`

Each children node inside ```<SimplyPaging/>``` component will be in its own page.

**vertical**

`type: boolean`

> WIP - currently only pages up and down

## Future Features

- [ ] Better way to import styles
- [ ] Support left/right paging
- [ ] Handle paging control on refresh (styling, location, resume paging, ...etc)

## Feature Request

Please message hello@websitesbymario.com for feature requests.

## Bug Report

Please message hello@websitesbymario.com to report bugs.

[Bug List](https://github.com/mariolo1985/Simply-Paging/issues)

---
_Source: https://npm.io/package/simply-paging · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
