@mvp-rockets/namma-generator
Version:
A generator to generate mvp-rockets projects
25 lines (20 loc) • 540 B
JavaScript
import Pagination from "../../molecules/Pagination";
export default {
title: "Molecules/Paginations",
component: Pagination,
argTypes: {
onPageChange: { action: "page change" },
},
};
const Template = (args) => <Pagination {...args} />;
export const Paginations = Template.bind({});
Paginations.args = {
totalPages: 50,
defaultSelectedPage: 1,
};
export const PaginationWithLabel = Template.bind({});
PaginationWithLabel.args = {
totalPages: 50,
defaultSelectedPage: 1,
paginationLabel: "1 to 4 of 65 records",
};