We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abde056 commit 65b2cdcCopy full SHA for 65b2cdc
1 file changed
packages/ui/src/components/DateInput/index.tsx
@@ -14,6 +14,7 @@ export interface Props<NAME> extends InheritedProps<NAME> {
14
inputClassName?: string;
15
withDiffView?: boolean;
16
prevValue?: RawInputProps<NAME>['value'];
17
+ type?: 'date' | 'month';
18
}
19
20
function DateInput<const T>(props: Props<T>) {
@@ -25,6 +26,7 @@ function DateInput<const T>(props: Props<T>) {
25
26
withDiffView,
27
value,
28
prevValue,
29
+ type = 'date',
30
...otherProps
31
} = props;
32
@@ -59,7 +61,7 @@ function DateInput<const T>(props: Props<T>) {
59
61
readOnly={readOnly}
60
62
disabled={disabled}
63
className={inputClassName}
- type="date"
64
+ type={type}
65
/>
66
)}
67
0 commit comments