You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| hd |`boolean`|`undefined`| If present, preview on full screen will be presented in the real image resolution |
124
-
| id |`string`\|`number`|`undefined`| identifier for the file |
125
-
| info |`boolean`|`false`|whether to show the info layer or not also whether to make visible the info button or not|
126
-
| onDelete |`Function`|`undefined`| A `Function` of what to do when close button is pressed or clicked |
127
-
| onSee |`Function`|`undefined`| A function of what to do when "see" button is pressed or clicked|
128
-
| preview |`boolean`|`false`|`undefined`|
129
-
| uploadMessage |`string`|`undefined`| The message to display when server responds |
130
-
| uploadStatus |`undefined`\|`"uploading"`\|`"success"`\|`"error"`|`undefined`| The status of the upload process |
131
-
| valid |`boolean`|`false`| whether to show a "valid" or "rejected" message ("valid", "denied") by def. valid is `false` (if not present, it's `false` too)This value wil affect preview behaviour, If not valid, the preview will not be shown, nor the view button |
| hd |`boolean`|`undefined`| If present, preview on full screen will be presented in the real image resolution |
124
+
| id |`string`\|`number`|`undefined`| identifier for the file |
125
+
| info |`boolean`|`false`|If present, the info layer and the info button will ve visible |
126
+
| onDelete |`Function`|`undefined`| A `Function` of what to do when close button is pressed or clicked |
127
+
| onSee |`Function`|`undefined`| A `Function` of what to do when "see" button is pressed or clicked. Returns as first parameter the image url. If `hd` present, will return the image url in the real quality. Otherwise, will return a minimized image with less resolution in order to save memory.|
128
+
| preview |`boolean`|`false`|If present, and if `onSee` present, "see" button will be visible and on click will trigger `onSee` function|
129
+
| uploadMessage |`string`|`undefined`| The message to display when server responds |
130
+
| uploadStatus |`undefined`\|`"uploading"`\|`"success"`\|`"error"`|`undefined`| The status of the upload process |
131
+
| valid |`boolean`|`false`| whether to show a "valid" or "rejected" message ("valid", "denied"). By default valid is `false` (if not present, it's `false` too)This value will affect preview behaviour. If not valid, the preview will not be shown, nor the view button even when `onSee` and `preview` props are present. To make a preview despite of the image file in not valid, is a feaure that will be added in future releases.|
132
132
133
133
## FullScreenPreview API
134
134
@@ -138,7 +138,7 @@ Yes, it's really all you need to get started as you can see in these live and in
| accept |`string`|`undefined`| The list of mimetypes and extensions of files to accept. This is a comma separated list of mime types or file extensions. Eg.: image/\*,application/pdf,.psd |
159
159
| color |`string`|`"#071e25"`| The main color for the button. (e.g. "#FFFFFF", "rgb(255,12,45)") |
160
-
| disabled ||| whether the button will be disabled or not |
160
+
| disabled |`boolean`|`false`| whether the button will be disabled or not |
161
161
| id |`string`|`undefined`| the id of the component |
162
162
| label |`string`| "Browse ..." | If given, this label will be shwed inside the button |
163
163
| maxFileSize |`number`|`undefined`| max file size allowed in bytes |
164
164
| multiple |`boolean`|`false`| whether to accept multiple files or not |
165
-
| onChange |`Function`|`undefined`| What to do after selecting the files. Returns the File[] to the parent component |
165
+
| onChange |`Function`|`undefined`|What to do after selecting the files. Returns the File[] to the parent component|
166
166
| style |`React.CSSProperties`| {} | the in-line style object |
167
167
| text |`"uppercase"`\|`"capitalize"`\|`"lowercase"`\|`"none"`|`"capitalize"`| the text transfor for the button label |
168
-
| textColor |`string`| "white" |The font color in case variant is `"contained"`|
168
+
| textColor |`string`|"white" |The font color in case variant is `"contained"`|
169
169
| validator | (f: `File`) => `boolean`|`undefined`| must be a function that recieves as first parameter a File Object and must return a boolean value. This function will be used instead of the default validator |
170
170
| variant |`"text"`\|`"outlined"`\|`"contained"`|`"contained"`| The variant of the button |
0 commit comments