Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 596 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 596 Bytes

Webpack Example

Use in your app

Install

npm install --save @ideal-postcodes/address-finder

Usage

import { AddressFinder } from "@ideal-postcodes/address-finder";

AddressFinder.setup({
  inputField: "#input",
  apiKey: "iddqd",
  injectStyle: true,
  outputFields: {
    line_1: "#line_1",
    line_2: "#line_2",
    line_3: "#line_3",
    post_town: "#post_town",
    postcode: "#postcode",
  },
});

Run this demo

npm install && npm start

Open http://localhost:8081/