# @chameleon-ds/paginator

> Chameleon paginator

Latest version **2.0.1** (published 2020-06-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @chameleon-ds/paginator
pnpm add @chameleon-ds/paginator
yarn add @chameleon-ds/paginator
bun add @chameleon-ds/paginator
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2020-06-22 |
| First published | 2019-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 23.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 27 |
| Author | Maritz Motivation Solutions, Inc. |
| Maintainers | kewalter, mandymichel, olerk16, ryuhhnn, tfreiner, zemptime |

## Links

- npm: https://www.npmjs.com/package/@chameleon-ds/paginator
- Repository: https://github.com/MaritzSTL/chameleon
- Homepage: https://github.com/MaritzSTL/chameleon/tree/master/packages/paginator#readme
- Issues: https://github.com/MaritzSTL/chameleon/issues
- npm.io page: https://npm.io/package/@chameleon-ds/paginator

## Dependencies (2)

- [lit-element](https://npm.io/package/lit-element.md) ^2.2.1
- [@chameleon-ds/button](https://npm.io/package/@chameleon-ds/button.md) ^2.0.1

## Recent versions

- 2.0.1 (latest) — 2020-06-22
- 2.0.0 — 2020-06-18
- 1.2.7 — 2020-06-01
- 1.2.6 — 2020-05-29
- 1.2.5 — 2020-05-13
- 1.2.2 — 2020-05-07
- 1.2.1 — 2020-05-07
- 1.2.0 — 2020-04-30
- 1.1.11 — 2020-04-03
- 1.1.8 — 2020-03-11
- 1.1.7 — 2019-12-17
- 1.1.6 — 2019-12-05
- 1.1.5 — 2019-11-26
- 1.1.4 — 2019-11-21
- 1.1.3 — 2019-11-21
- … 4 more at https://npm.io/package/@chameleon-ds/paginator/versions

## README

# Chameleon Pagniator

```js script
import { html } from "@open-wc/demoing-storybook";
import { withKnobs, number } from "@open-wc/demoing-storybook";
import "./chameleon-paginator.js";

export default {
  title: "Components|Navigation/Paginator",
  component: "chameleon-paginator",
  decorators: [withKnobs],
  options: { selectedPanel: "storybookjs/docs/panel" },
};
```

## Properties

| Property Name | Type(s) | Default Value | Description                            |
| ------------- | ------- | ------------- | -------------------------------------- |
| `totalItems`  | Number  | `null`        | The total number of items in all pages |
| `pageSize`    | Number  | `null`        | The amount of pages of items           |
| `currentPage` | Number  | `1`           | The multiselect's current page         |
| `maxLength`   | Number  | `7`           | The max length of visible pages        |
| `separator`   | String  | `"..."`       | The separator for skipped pages        |

## Examples

### Default

```js preview-story
export const Default = () => {
  const totalItems = number("Total Items", 100);
  const pageSize = number("Page Size", 10);

  return html`
    <chameleon-paginator
      totalItems="${totalItems ? totalItems : 0}"
      pageSize="${pageSize ? pageSize : 0}"
    ></chameleon-paginator>
  `;
};
```

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