@moamfar/react-time-date-picker
Version:
A React component library providing elegant and intuitive iOS-style pickers for Gregorian dates times and Jalaali (Persian) dates and Hijri dates offering a consistent user experience in your React applications.
21 lines (20 loc) • 524 B
TypeScript
export type CustomPickerValueType = {
id: number;
title: string | number;
};
export type CustomPickerProps = {
setValue: (a?: CustomPickerValueType) => void;
value?: CustomPickerValueType;
loading?: boolean;
submitCallback?: () => void;
submitTitle?: string;
autoSubmitDebounce?: number;
useTransform?: boolean;
submitTitleClassName?: string;
buttonClassName?: string;
containerClassName?: string;
slides: {
id: number;
title: string | number;
}[];
};