open-index/open-npm huggingface dataset:
npm package: @mpfe/pager
Description: 分页组件
Latest version: 1.0.1

### Install

```bash
 npm install @mpfe/pager
 //or
 yarn add @mpfe/pager
```

### Usage

```javascript
import Pager from "@mpfe/pager";
import "@mpfe/pager/index.css";
```

### Options

```typescript
interface HrefCreator {
  (page: number, pageCount: number, pageRange: number): string;
}
interface PagerProps {
  pageCount: number;
  pageRange: number;
  forcePage?: number;
  prevLabel?: string;
  nextLabel?: string;
  firstLabel?: string;
  lastLabel?: string;
  showFirst?: boolean;
  showLast?: boolean;
  pagerClassName: string;
  pageClassName: string;
  containerClassName?: string;
  onPageChange: (page: number) => any;
  hrefCreator?: HrefCreator;
  showTotal: boolean;
}
```