Skip to content

Commit 7769e0a

Browse files
Add new tag and fix types.ts
1 parent d91358d commit 7769e0a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,12 @@ const sections = [
154154
</td>
155155
</tr>
156156
<tr>
157-
<td>optional</td>
157+
<td>
158+
<DxcFlex direction="column" gap="var(--spacing-gap-xs)" alignItems="baseline">
159+
<StatusBadge status="new" />
160+
optional
161+
</DxcFlex>
162+
</td>
158163
<td>
159164
<TableCode>boolean</TableCode>
160165
</td>

packages/lib/src/file-input/types.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ type CommonProps = {
6161
multiple?: boolean;
6262
/**
6363
* If true, the input will be optional, showing '(Optional)'
64-
* next to the label. Otherwise, the field will be considered required and an error will be
65-
* passed as a parameter to the OnBlur and onChange functions when it has
66-
* not been filled.
64+
* next to the label.
6765
*/
6866
optional?: boolean;
6967
/**

0 commit comments

Comments
 (0)