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
// specify file types to accept. See [HTML attribute: accept on MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept) for more information.
5
+
/**
6
+
* specify file types to accept.
7
+
*
8
+
* See [HTML attribute: accept on MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept) for more information.
9
+
*/
4
10
accept?: string|string[];
5
-
// the maximum size a file can be in bytes.
11
+
/**
12
+
* the maximum size a file can be in bytes.
13
+
*/
6
14
maxSize?: number;
7
-
// the minimum size a file can be in bytes.
15
+
/**
16
+
* the minimum size a file can be in bytes.
17
+
*/
8
18
minSize?: number;
9
-
// total number of files allowed in a transaction. A value of 0 disables the action/component, 1 turns multiple off, and any other value enables multiple. Any attempt to upload more files than allowed will result in the files being placed in rejections
19
+
/**
20
+
* total number of files allowed in a transaction.
21
+
*
22
+
* A value of 0 disables the action/component, 1 turns multiple off, and any other value enables multiple.
23
+
*
24
+
* Any attempt to upload more files than allowed will result in the files being placed in rejections
25
+
*/
10
26
fileLimit?: number;
11
-
// sets the file input to `multiple`. See [HTML attribute: multiple on MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple) for more information.
27
+
/**
28
+
* sets the file input to `multiple`.
29
+
*
30
+
* See [HTML attribute: multiple on MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple) for more information.
31
+
*/
12
32
multiple?: boolean;
13
-
// disables the action/component, removing all event listeners
33
+
/**
34
+
* disables the action/component, removing all event listeners
35
+
*/
14
36
disabled?: boolean;
15
-
// determines whether or not files can be dropped anywhere in the window. A value of `false` would require that the files be droppped within the `<FileDrop>` component or the element with `use:filedrop`.
37
+
/**
38
+
* determines whether or not files can be dropped anywhere in the window.
39
+
*
40
+
* A value of `false` would require that the files be droppped within the `<FileDrop>` component or the element with `use:filedrop`.
41
+
*/
16
42
windowDrop?: boolean;
17
-
// causes the containing element to be treated as the input. If hideInput is true or undefined, disabling this does not change the `tabindex` of the container or remove the `keydown` eventListener
43
+
/**
44
+
* causes the containing element to be treated as the input.
45
+
*
46
+
* If hideInput is `true` or `undefined`, disabling this does not change the `tabindex` of the container or remove the `keydown` eventListener
47
+
*/
18
48
clickToUpload?: boolean;
19
-
20
-
tabIndex?: number;// if clickToUpload is true or undefined, this defaults to 0.
21
-
// if true or undefined, input[type='file'] will be set to display:none
49
+
/**
50
+
* tab index of the container.
51
+
*
52
+
* If `disabled` is `true` then this is set to `-1`.
53
+
*
54
+
* If `clickToUpload` is `true` or `undefined`, this defaults to 0.
55
+
*/
56
+
tabIndex?: number;
57
+
/**
58
+
* if true or undefined, input[type='file'] will be set to display:none
59
+
*/
22
60
hideInput?: boolean;
23
-
// style applied to the node
61
+
/**
62
+
* style applied to the node
63
+
*/
24
64
style?: string;
25
-
// id of the node
65
+
/**
66
+
* id of the node
67
+
*/
26
68
id?: string;
27
-
// allows you to explicitly pass the file `HTMLInputElement` as a parameter. If this `undefined`, the action will search for `input[type="file"]`. If one is not found, it will be appeneded to the element with `use:filedrop`
69
+
/**
70
+
* allows you to explicitly pass the file `HTMLInputElement` as a parameter.
71
+
*
72
+
* If this `undefined`, the action will search for `input[type="file"]`.
73
+
*
74
+
* If an `input[type="file"]` is not found, it will be appeneded to the element with `use:filedrop`
0 commit comments