@cfxlabsinc/b2b-services
    Preparing search index...
    AddressSearchInputProps: Omit<
        InputProps,
        "value"
        | "onChange"
        | "defaultValue"
        | "type"
        | "role"
        | "endContent",
    > & {
        countries?: readonly string[];
        onChange: (text: string) => void;
        onPick?: (suggestion: AddressSuggestion) => void;
        ref?: React.Ref<HTMLInputElement>;
        search: AddressSearch;
        value: string;
    }

    Type Declaration

    • Optionalcountries?: readonly string[]

      Alpha-2 codes to restrict suggestions to. Empty means anywhere.

    • onChange: (text: string) => void
    • OptionalonPick?: (suggestion: AddressSuggestion) => void

      Handles a pick. Without it, a pick writes the suggestion's one-line label.

    • Optionalref?: React.Ref<HTMLInputElement>
    • search: AddressSearch
    • value: string

      The typed text, which is the value whether or not a suggestion is picked.