PHP Classes

File: src/components/pagination/Pagination.stories.tsx

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WordPress React Plugin Kit   src/components/pagination/Pagination.stories.tsx   Download  
File: src/components/pagination/Pagination.stories.tsx
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WordPress React Plugin Kit
Environment to develop new WordPress plugins
Author: By
Last change:
Date: 1 year ago
Size: 598 bytes
 

Contents

Class file image Download
import { ComponentStory, ComponentMeta } from '@storybook/react'; import Pagination from './Pagination'; export default { title: 'Common/Pagination', component: Pagination } as ComponentMeta<typeof Pagination>; const Template: ComponentStory<typeof Pagination> = (args) => <Pagination {...args} />; export const DefaultPagination = Template.bind({}); DefaultPagination.args = { perPage: 10, total: 1000, // paginate: () => { } } export const PaginationSmallItems = Template.bind({}); PaginationSmallItems.args = { perPage: 20, total: 6, // paginate: () => { } }