File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
src/app/stories/design-system/components/input/image Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 1- import ImageInput from "@/app/components/input/file/ImageInput/ImageInput" ;
1+ import * as React from "react" ;
2+ import ImageInputPlaceHolder from "@/app/components/input/file/ImageInput/ImageInputPlaceHolder" ;
23import { Meta , StoryObj } from "@storybook/react" ;
34
45const meta = {
56 title : "Design System/Components/FileInput" ,
6- component : ImageInput ,
7+ component : ImageInputPlaceHolder ,
78 parameters : {
89 layout : "centered" ,
910 } ,
10- } satisfies Meta < typeof ImageInput > ;
11+ } satisfies Meta < typeof ImageInputPlaceHolder > ;
1112
1213export default meta ;
1314
14- type Story = StoryObj < typeof ImageInput > ;
15+ type Story = StoryObj < typeof ImageInputPlaceHolder > ;
1516
1617export const Upload_Image : Story = {
1718 args : {
18- name : "uploadImage" ,
19+ size : "large" ,
20+ initialImages : [ ] ,
21+ onImageUpload : async ( file : File ) => {
22+ // 스토리북용 mock 함수
23+ return URL . createObjectURL ( file ) ;
24+ } ,
25+ onImagesChange : ( images ) => {
26+ console . log ( "Images changed:" , images ) ;
27+ } ,
1928 } ,
2029} ;
You can’t perform that action at this time.
0 commit comments