@hhgtech/hhg-components
Version:
Hello Health Group common components
11 lines (10 loc) • 517 B
TypeScript
import React from 'react';
import { DatePickerType, DatePickerInputProps as MantineDatePickerInputProps } from '@mantine/dates';
export type SharedType = {
isRange?: boolean;
isMB?: boolean;
fullWidth?: boolean;
};
export type DatePickerProps<T extends DatePickerType = 'default'> = SharedType & MantineDatePickerInputProps<T>;
declare const DatePicker: <Type extends DatePickerType = "default">({ value, fullWidth, ...rest }: DatePickerProps<Type>) => React.JSX.Element;
export { DatePicker };