0.3.5 ā€¢ Published 4 years ago

moyi-components v0.3.5

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Welcome to moyi-components šŸ‘‹


Prerequisites

  • node >=10

Install

yarn install moyi-components
# OR
npm install moyi-components

Usage

import { MyPagination } from 'moyi-components';
ReactDOM.render(<MyPagination />, container);

API

ParameterDescriptionTypeDefault
currentcurrent pageNumber1
pageSizeitems per pageNumber10
totalitems total countNumber0
onChangepage change callbackFunction(current, pageSize)-
showTotalshow total records and rangeFunction(total, from, to)-
stylethe style of paginationObject{}
prevIconspecifict the default previous iconReactNode |(props: PaginationProps) => ReactNode
nextIconspecifict the default next iconReactNode |(props: PaginationProps) => ReactNode

Run tests

yarn run test

Author

šŸ‘¤ moyiwpb