feat: storybook 추가

This commit is contained in:
2026-04-14 10:38:36 +09:00
parent 52f8c30b2e
commit 8d6bff88d6
23 changed files with 1687 additions and 10 deletions

View File

@@ -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">