@@ -5,21 +5,21 @@ sidebar_position: 2
55
66## ImageUploadProps
77
8- | Name | Type | Default |
9- | ------------------ | ---------------------------------------------------- | ----------------------------------------- |
10- | children | React.ReactNode | |
11- | width | ` number ` | 100 |
12- | height | ` number ` | ` width ` |
13- | value | ` string ` \| ` ValueItem ` \| ` (string \| ValueItem)[] ` | [ ] |
14- | onChange | (value: ` ImageItem[] ` ) => void | |
15- | onUpload | (file: ` File ` ) => ` string ` \| ` Promise<string> ` | (file: File) => URL.createObjectURL(file) |
16- | max | ` number ` | Infinity |
17- | readonly | ` boolean ` | |
18- | className | ` string ` | |
19- | itemClassName | ` string ` | |
20- | dropzoneClassName | ` string ` | |
21- | dropzoneOptions | DropzoneOptions | |
22- | photoProviderProps | Omit\< PhotoProviderProps, "children"\> | |
8+ | Name | Description | Type | Default |
9+ | ------------------ | --------------------------------------- | --------------------------------------- ------------- | ----------------------------------------- |
10+ | children | custom upload zone | React.ReactNode | |
11+ | width | image width | ` number ` | 100 |
12+ | height | image height | ` number ` | ` width ` |
13+ | value | default images | ` string ` \| ` ValueItem ` \| ` (string \| ValueItem)[] ` | [ ] |
14+ | onChange | callback for when the images changes | (value: ` ImageItem[] ` ) => void | |
15+ | onUpload | callback for when the drop event occurs | (file: ` File ` ) => ` string ` \| ` Promise<string> ` | (file: File) => URL.createObjectURL(file) |
16+ | max | max image number | ` number ` | Infinity |
17+ | readonly | for preview | ` boolean ` | |
18+ | className | root className | ` string ` | |
19+ | itemClassName | image className | ` string ` | |
20+ | dropzoneClassName | dropzone className | ` string ` | |
21+ | dropzoneOptions | | DropzoneOptions | |
22+ | photoProviderProps | | Omit\< PhotoProviderProps, "children"\> | |
2323
2424### Types
2525
0 commit comments