UNPKG

react-temporal-picker

Version:

This package is no longer maintained, please use this one: [@temporal-picker/react](https://www.npmjs.com/package/@temporal-picker/react).

16 lines (15 loc) 559 B
import { Components } from "@temporal-picker/custom-elements/dist/types"; import { HTMLAttributes } from "react"; type ViewDetail = { type: string; key: string; props: any; el: HTMLElement; }; export type TemporalPickerElement = Partial<Components.TemporalPicker>; export type HTMLTemporalPickerElement = TemporalPickerElement & HTMLElement; export type TemporalPickerProps = TemporalPickerElement & HTMLAttributes<HTMLElement> & { testId?: string; onViewChange?: (event: CustomEvent<ViewDetail>) => void; }; export {};