wix-style-react
Version:
17 lines (14 loc) • 618 B
TypeScript
import * as React from 'react';
import { Locale } from 'date-fns';
import { InputProps } from '../../Input';
import { OmitPolyfill } from '../../common';
import type { SupportedWixLocales } from 'wix-design-systems-locale-utils';
export interface DateInputProps extends OmitPolyfill<InputProps, 'value'> {
dataHook?: string;
value?: object | string | number;
locale?: SupportedWixLocales | Locale;
dateStyle?: 'short' | 'medium';
dateFormat?: string | ((date: Date) => void);
dateFormatV2?: string | ((date: Date) => void);
}
export default class DateInput extends React.PureComponent<DateInputProps> {}