react-inpost-geowidget
v1.1.1
Published
A simple React.js component for Inpost Geowidget
Downloads
199
Maintainers
Readme
react-inpost-geowidget
A simple React.js component for Inpost Geowidget
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.