1.0.3 • Published 18 days ago
@citizenshipper/widgets-react v1.0.3
Installation
This module is distributed via npm and should be installed as one of your project's dependencies
:
npm install @citizenshipper/widgets-react
This package also depends on
react
. Please make sure you have it installed as well.
Usage
import * as React from 'react';
import { DogShipmentPriceEstimate } from "@citizenshipper/widgets-react"
const dog = {
name: "Remy",
breed: "Australian Shepherd",
}
const pickupAddress = {
city: "Dallas",
stateCode: "TX",
lat: 32.779167,
lng: -96.808891,
zipCode: "75001", // can be optional
}
const apiKey = "YOUR_API_KEY"
function App() {
return <DogShipmentPriceEstimate dog={dog} pickupAddress={pickupAddress} apiKey={apiKey} />
}
Props
Prop | Type | Required | Description |
---|---|---|---|
dog | object | true | dog related data like name and breed |
pickupAddress | object | true | address related data like city, state code, lat, lng and zip code. Zip code is optional |
apiKey | string | true | google api key |
dog
Type: object
, required: true
const dog = {
name: "Remy",
breed: "Australian Shepherd",
}
pickupAddress
Type: object
, required: true
const pickupAddress = {
city: "Dallas",
stateCode: "TX",
lat: 32.779167,
lng: -96.808891,
zipCode: "75001",
}
apiKey
Type: string
, required: true
const apiKey = "AIzaSyC1qY_rest_of_the_key"
1.0.3
18 days ago
1.0.2
7 months ago
0.1.52
2 years ago
1.0.1
1 year ago
0.1.53
2 years ago
1.0.0
2 years ago
0.1.50
2 years ago
0.1.51
2 years ago
0.1.49
2 years ago
0.1.47
2 years ago
0.1.48
2 years ago
0.1.45
2 years ago
0.1.46
2 years ago
0.1.44
2 years ago
0.1.43
2 years ago
0.1.42
2 years ago
0.1.41
2 years ago
0.1.40
2 years ago
0.1.39
2 years ago
0.1.38
2 years ago
0.1.37
2 years ago
0.1.36
2 years ago
0.1.35
2 years ago
0.1.34
2 years ago
0.1.33
2 years ago
0.1.32
2 years ago
0.1.31
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago