@while-and-for/tremor-react
Version:
The React library to build dashboards faster.
28 lines (27 loc) • 968 B
TypeScript
import React from "react";
import { Color } from "../../../lib/inputTypes";
import { enUS } from "date-fns/locale";
export type Locale = typeof enUS;
export type DateRangePickerValue = {
from?: Date;
to?: Date;
selectValue?: string;
};
export interface DateRangePickerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "defaultValue"> {
value?: DateRangePickerValue;
defaultValue?: DateRangePickerValue;
onValueChange?: (value: DateRangePickerValue) => void;
enableSelect?: boolean;
minDate?: Date;
maxDate?: Date;
placeholder?: string;
selectPlaceholder?: string;
disabled?: boolean;
color?: Color;
locale?: Locale;
enableClear?: boolean;
enableYearNavigation?: boolean;
children?: React.ReactElement[] | React.ReactElement;
}
declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps & React.RefAttributes<HTMLDivElement>>;
export default DateRangePicker;