werkbank
    Preparing search index...

    Type Alias DateInputProps<Schema>

    DateInputProps: Omit<
        HTMLAttributes<HTMLDivElement>,
        "defaultValue" | "onChange" | "children",
    > & ValidationProps<Schema> & {
        children?: ReactNode;
        defaultValue?: string;
        name?: string;
        onBlur?: FocusEventHandler<HTMLInputElement>;
        onChange?: ChangeEventHandler<HTMLInputElement>;
        required?: boolean;
        value?: string;
    }

    Props for the DateInput component.

    Type Parameters

    • Schema extends BaseSchema<any, any, any>

    Type Declaration

    • Optionalchildren?: ReactNode

      Child components (Day, Month, Year).

    • OptionaldefaultValue?: string

      Initial date value as an ISO string (YYYY-MM-DD).

    • Optionalname?: string

      Name attribute for the hidden input.

    • OptionalonBlur?: FocusEventHandler<HTMLInputElement>

      Callback when the input is blurred.

    • OptionalonChange?: ChangeEventHandler<HTMLInputElement>

      Callback when the hidden input value changes.

    • Optionalrequired?: boolean

      Whether the date input is required.

    • Optionalvalue?: string

      Controlled date value as an ISO string (YYYY-MM-DD).

    Extends standard HTML div attributes (as the wrapper) and adds validation and value control properties.