Skip to content

Pagination

brandonk1234 edited this page Dec 5, 2016 · 2 revisions

Pagination

The pagination component is used to navigate through pages quickly and easily.

Props

The props needed for this component are listed and explained below:

  • currentPage - This prop must be a number

  • totalPages - This prop must be a number

  • buttonType - This prop must be a string

  • className - This prop must be a string

Example

<Pagination 
    currentPage={2}
    totalPages={5}
    buttonType="secondary"
    className="course"
/>,
<Pagination 
    currentPage={3}
    totalPages={9}
    buttonType="secondary"
    className="course"
    isSmall={true}
/>

Related