1.1.1 • Published 1 year ago

react-inpost-geowidget v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-inpost-geowidget

A simple React.js component for Inpost Geowidget

Tests

Getting Started

This package includes a simple React.js Component for Inpost Geowidget (v5 Beta). See docs for more details.

Installation

npm i react-inpost-geowidget
# or
yarn add react-inpost-geowidget

Usage

First, obtain the token to the API:

import { InpostGeowidget } from "react-inpost-geowidget";

function App() {
  const onPointCallback = (e) => {
    console.log(e);
  }

  return (
    <div className="App">
      <InpostGeowidget
        token={YOUR_API_TOKEN}
        onPoint={onPointCallback}
      />
    </div>
  );
}

export default App;

Optional component props:

  • language (default 'pl')
  • config (default 'parcelCollect')

Read more about config parameter in the docs.

License

This project is licensed under the MIT License.