pagination.stories.js 431 B

12345678910111213141516171819
  1. import Pagination from '../js/shared/components/pagination'
  2. export const Interactive = args => {
  3. return <Pagination {...args} />
  4. }
  5. export default {
  6. title: 'Pagination',
  7. component: Pagination,
  8. args: {
  9. currentPage: 1,
  10. totalPages: 10,
  11. handlePageClick: () => {},
  12. },
  13. argTypes: {
  14. currentPage: { control: { type: 'number', min: 1, max: 10, step: 1 } },
  15. totalPages: { control: { disable: true } },
  16. },
  17. }