overleaf/services/web/frontend/stories/pagination.stories.js
Alf Eaton 199ab985a0 Merge pull request #7223 from overleaf/ta-storybook-organise
Reorganise Storybook Stories

GitOrigin-RevId: 91014f49f84c645f87091724f03a007b731a8ad5
2022-04-05 12:16:53 +00:00

19 lines
453 B
JavaScript

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