pagination.stories.jsx 484 B

1234567891011121314151617181920212223
  1. import Pagination from '../../js/shared/components/pagination'
  2. export const Interactive = args => {
  3. return <Pagination {...args} />
  4. }
  5. export default {
  6. title: 'Shared / Components / 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. },
  16. parameters: {
  17. controls: {
  18. include: ['currentPage'],
  19. },
  20. },
  21. }