overleaf/services/web/frontend/stories/pagination.stories.js
Jessica Lawshe f8ab7c32ea Merge pull request #4202 from overleaf/jel-gallery-pagination
Add pagination to the gallery

GitOrigin-RevId: 7107133da5e5ccf316235a6688070203c8bfa566
2021-06-17 02:09:38 +00:00

21 lines
458 B
JavaScript

import React from 'react'
import Pagination from '../js/shared/components/pagination'
export const Interactive = args => {
return <Pagination {...args} />
}
export default {
title: 'Pagination',
component: Pagination,
args: {
currentPage: 1,
totalPages: 10,
handlePageClick: () => {},
},
argTypes: {
currentPage: { control: { type: 'number', min: 1, max: 10, step: 1 } },
totalPages: { control: { disable: true } },
},
}