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
- Host: GitHub
- URL: https://github.com/ashmadev/react-inpost-geowidget
- Owner: AshmaDev
- License: mit
- Created: 2022-05-13T13:42:07.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-19T15:28:05.000Z (over 3 years ago)
- Last Synced: 2025-03-28T06:04:25.590Z (over 1 year ago)
- Language: JavaScript
- Size: 252 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-inpost-geowidget
A simple React.js component for Inpost Geowidget
[](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.