1.1.0 • Published 3 years ago
@berlitz/pagination v1.1.0
Pagination 
Pagination to indicate a series of related content exists across multiple pages.
Installation
yarn add @berlitz/pagination
Props
Argument | Type | Required | Default |
---|---|---|---|
activePage | number | ✅ | - |
numberPages | number | ✅ | - |
onChange | func | ✅ | - |
nextLabel | string | ❌ | 'Next' |
prevLabel | string | ❌ | 'Back' |
Usage
import React, { useState } from 'react'
import Pagination from '@berlitz/pagination'
const MyApp = () => {
const [activePage, setActivePage] = useState(1)
return (
<Pagination
activePage={activePage}
numberPages={6}
onChange={pageNumber => setActivePage(pageNumber)}
prevLabel="Back"
nextLabel="Next"
/>
)
}
1.1.0
3 years ago
1.0.11-test.25
3 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.1-alpha.63
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
5 years ago
0.1.4
5 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago