Pagination
Navigation controls for paginated content.
Preview
Props
| Prop | Type | Default | Description |
|---|---|---|---|
page | number | 1 | Current page |
totalPages | number | 1 | Total pages |
onPageChange | function | — | Page change handler |
Usage
const { Pagination } = window.ColorSnap;
ReactDOM.createRoot(document.getElementById('root')).render(
React.createElement(Pagination, { page: 2, totalPages: 10, onPageChange: function() {} })
);