@duffel/components
Version:
Component library to build your travel product with Duffel.
14 lines (13 loc) • 730 B
TypeScript
import { MapboxPlacesLookupProps } from "./MapboxPlacesLookup";
declare const CUSTOM_ELEMENT_TAG = "duffel-mapbox-places-lookup";
declare global {
namespace JSX {
interface IntrinsicElements {
[CUSTOM_ELEMENT_TAG]: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
}
}
}
type MapboxPlacesLookupCustomElementRenderArguments = Pick<MapboxPlacesLookupProps, "mapboxPublicKey" | "placeholder" | "inputClassName">;
export declare function renderMapboxPlacesLookupCustomElement(props: MapboxPlacesLookupCustomElementRenderArguments): void;
export declare function onMapboxPlacesLookupPlaceSelected(onPlaceSelected: MapboxPlacesLookupProps["onPlaceSelected"]): void;
export {};