calendarInput.tsx 478 B

123456789101112131415161718192021222324
  1. import React, { FC } from "react";
  2. interface calendarInputProps {
  3. onChange: Function;
  4. name: string;
  5. value?: string | null;
  6. min?: string;
  7. max?: string;
  8. [index: string]: any;
  9. }
  10. const CalendarInput: FC<calendarInputProps> = ({ className, ...props }) => {
  11. return (
  12. <input
  13. {...(props as any)}
  14. // defaultValue={defaultValue}
  15. className={`form-control ${className}`}
  16. type="date"
  17. id="start"
  18. />
  19. );
  20. };
  21. export default CalendarInput;