@cfxlabsinc/b2b-services
    Preparing search index...
    DatePickerProps: {
        align?: "start" | "center" | "end";
        "aria-describedby"?: string;
        "aria-invalid"?: boolean | "true" | "false";
        captionLayout?: React.ComponentProps<typeof Calendar>["captionLayout"];
        className?: string;
        disabled?: boolean;
        disabledDates?: React.ComponentProps<typeof Calendar>["disabled"];
        fromYear?: number;
        id?: string;
        onChange?: (next: string | undefined) => void;
        placeholder?: string;
        toYear?: number;
        value?: string;
    } & Omit<
        React.ComponentProps<"button">,
        "value" | "onChange" | "disabled" | "children" | "type",
    >

    Type Declaration

    • Optionalalign?: "start" | "center" | "end"
    • Optionalaria-describedby?: string
    • Optionalaria-invalid?: boolean | "true" | "false"

      Shown on the trigger button

    • OptionalcaptionLayout?: React.ComponentProps<typeof Calendar>["captionLayout"]

      Year/month dropdowns — useful for DOB. Default "dropdown".

    • OptionalclassName?: string
    • Optionaldisabled?: boolean

      Disables the trigger button (not individual calendar days).

    • OptionaldisabledDates?: React.ComponentProps<typeof Calendar>["disabled"]

      Days the calendar cannot select — forwarded to react-day-picker's disabled matcher (e.g. { after: new Date() } for no future dates). Named separately from disabled so FormControl can still disable the trigger without clobbering day matchers.

    • OptionalfromYear?: number
    • Optionalid?: string
    • OptionalonChange?: (next: string | undefined) => void
    • Optionalplaceholder?: string
    • OptionaltoYear?: number
    • Optionalvalue?: string

      yyyy-MM-dd preferred; ISO ok — normalized with the leading date part.