Skip to content

Commit 1367870

Browse files
committed
temp: Adds the interfaces
1 parent 7fbd0fb commit 1367870

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/file-input/interfaces.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ export interface FileInputProps extends BaseComponentProps, FormFieldCommonValid
4848
* If you want to clear the selection, use empty array.
4949
*/
5050
value: ReadonlyArray<File>;
51+
52+
/**
53+
* Renders the file input as disabled and file selection.
54+
*/
55+
disabled?: boolean;
56+
57+
/**
58+
* Provides a reason why the file input is disabled (only when `disabled` is `true`).
59+
* If provided, the file input becomes focusable.
60+
*/
61+
disabledReason?: string;
5162
}
5263

5364
export namespace FileInputProps {

src/file-token-group/interfaces.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ export interface FileTokenGroupProps extends BaseComponentProps {
5858
* user from modifying the value. A read-only control is still focusable.
5959
*/
6060
readOnly?: boolean;
61+
/**
62+
* Specifies if the control is disabled.
63+
* This prevents the user from modifying the value. A disabled control is not focusable.
64+
*/
65+
disabled?: boolean;
6166
/**
6267
* An object containing all the localized strings required by the component:
6368
* * `removeFileAriaLabel` (function): A function to render the ARIA label for file token remove button.

0 commit comments

Comments
 (0)