An open API service indexing awesome lists of open source software.

https://github.com/ashmadev/react-inpost-geowidget

A simple React.js component for Inpost Geowidget
https://github.com/ashmadev/react-inpost-geowidget

Last synced: about 1 year ago
JSON representation

A simple React.js component for Inpost Geowidget

Awesome Lists containing this project

README

          

# react-inpost-geowidget
A simple React.js component for Inpost Geowidget

[![Tests](https://github.com/AshmaDev/react-inpost-geowidget/actions/workflows/node.js.yml/badge.svg)](https://github.com/AshmaDev/react-inpost-geowidget/actions/workflows/node.js.yml)

## Getting Started

This package includes a simple React.js Component for Inpost Geowidget (v5 Beta). See [docs](https://dokumentacja-inpost.atlassian.net/wiki/spaces/PL/pages/50069505/Geowidget+v5+Beta) for more details.

### Installation

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

### Usage

First, obtain the token to the API:
- [Production](https://manager.paczkomaty.pl)
- [Sanbox](https://sandbox-manager.paczkomaty.pl)

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

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

return (




);
}

export default App;
```

Optional component props:
- language (default 'pl')
- config (default 'parcelCollect')

Read more about config parameter in the [docs](https://dokumentacja-inpost.atlassian.net/wiki/spaces/PL/pages/50069505/Geowidget+v5+Beta).

## License

This project is licensed under the MIT License.