adwaita-web
Version:
A GTK inspired toolkit designed to build awesome web apps
15 lines (14 loc) • 645 B
TypeScript
/// <reference types="react" />
import type { InputProps } from "./Input";
export type { InputProps };
export declare type DatePickerProps = {
/** A date object */
value?: Date;
/** A date object */
defaultValue?: Date;
/** A function that receives a date object */
onChange?: (value: Date | null) => void;
/** A string that represents the date format */
format?: string;
} & Omit<InputProps, "onChange" | "iconAfter" | "value" | "onFocus" | "onBlur" | "defaultValue">;
export declare function DatePicker({ format: formatString, value: valueProp, defaultValue, onChange, ...rest }: DatePickerProps): JSX.Element;