A customizable date picker component.

  • Parameters

    • props: {
          animateYearScrolling?: boolean;
          date?: any;
          disableFuture?: boolean;
          maxDate?: string;
          minDate?: string;
          onChange?: (change: any) => void;
          openToYearSelection?: boolean;
      }

      The component props.

      • OptionalanimateYearScrolling?: boolean

        Boolean indicating whether to animate the year scrolling. Defaults to true.

      • Optionaldate?: any

        The initial date to display in the date picker.

      • OptionaldisableFuture?: boolean

        Boolean indicating whether future dates should be disabled. Defaults to false.

      • OptionalmaxDate?: string

        The maximum selectable date in the date picker. Defaults to '2100-01-01'.

      • OptionalminDate?: string

        The minimum selectable date in the date picker. Defaults to '1900-01-01'.

      • OptionalonChange?: (change: any) => void

        The callback function triggered when the selected date is changed.

      • OptionalopenToYearSelection?: boolean

        Boolean indicating whether to open the date picker in year selection mode. Defaults to false.

    Returns Element

    The date picker component.