Skip to content

Latest commit

 

History

History

rollup

Rollup 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 && \   # Install deps
npm run build && \ # Build bundle
npm start          # Launch HTTP server

Open http://localhost:8081