Skip to content

loveyunk/react-pagination-component

Repository files navigation

react-pagination-component

React Pagination Component.

JavaScript Style Guide

Install

npm install --save @loveyunk/react-pagination-component

Usage

import * as React from 'react'

import MyComponent from 'react-pagination-component'

class Example extends React.Component {
  render () {
    return (
      <MyComponent />
    )
  }
}

API

Parameter Description Type Default
defaultCurrent uncontrolled current page Number 1
current current page Number undefined
total items total count Number 0
defaultPageSize default items per page Number 10
pageSize items per page Number 10

License

MIT © loveyunk