feat: storybook 추가
This commit is contained in:
@@ -5,6 +5,12 @@ import { Pagination } from './Pagination'
|
||||
const meta = {
|
||||
title: 'Components/Pagination',
|
||||
component: Pagination,
|
||||
args: {
|
||||
totalPages: 100,
|
||||
currentPage: 0,
|
||||
pageCount: 10,
|
||||
onPageChange: () => {},
|
||||
},
|
||||
argTypes: {
|
||||
totalPages: { control: 'number' },
|
||||
currentPage: { control: 'number' },
|
||||
@@ -61,7 +67,7 @@ export const SinglePage: Story = {
|
||||
}
|
||||
|
||||
export const Interactive: Story = {
|
||||
render: () => {
|
||||
render: function Render() {
|
||||
const [currentPage, setCurrentPage] = useState(0)
|
||||
return (
|
||||
<div className="flex flex-col gap-4 items-center">
|
||||
|
||||
Reference in New Issue
Block a user