Skip to content

Commit f7fa388

Browse files
committed
Deprecate name prop in File input
1 parent de7c6b0 commit f7fa388

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

lib/src/file-input/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type FileData = {
2222

2323
type CommonProps = {
2424
/**
25-
* Name attribute.
25+
* @deprecated Name attribute.
2626
*/
2727
name?: string;
2828
/**

website/screens/components/file-input/code/FileInputCodePage.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { DxcFlex, DxcTable, DxcLink } from "@dxc-technology/halstack-react";
1+
import {
2+
DxcFlex,
3+
DxcTable,
4+
DxcLink,
5+
DxcGrid,
6+
} from "@dxc-technology/halstack-react";
27
import QuickNavContainerLayout from "@/common/QuickNavContainerLayout";
38
import QuickNavContainer from "@/common/QuickNavContainer";
49
import Code from "@/common/Code";
@@ -26,7 +31,12 @@ const sections = [
2631
<tr>
2732
<td>name: string</td>
2833
<td></td>
29-
<td>Name attribute.</td>
34+
<td>
35+
<DxcGrid gap="0.25rem" placeItems="start">
36+
<StatusTag status="Deprecated">Deprecated</StatusTag>
37+
Name attribute.
38+
</DxcGrid>
39+
</td>
3040
</tr>
3141
<tr>
3242
<td>mode: 'file' | 'filedrop' | 'dropzone'</td>

0 commit comments

Comments
 (0)