1.0.3 • Published 1 year ago

@citizenshipper/widgets-react v1.0.3

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

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

PropTypeRequiredDescription
dogobjecttruedog related data like name and breed
pickupAddressobjecttrueaddress related data like city, state code, lat, lng and zip code. Zip code is optional
apiKeystringtruegoogle 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

1 year ago

1.0.2

2 years ago

0.1.52

3 years ago

1.0.1

3 years ago

0.1.53

3 years ago

1.0.0

3 years ago

0.1.50

3 years ago

0.1.51

3 years ago

0.1.49

3 years ago

0.1.47

3 years ago

0.1.48

3 years ago

0.1.45

3 years ago

0.1.46

3 years ago

0.1.44

3 years ago

0.1.43

3 years ago

0.1.42

3 years ago

0.1.41

3 years ago

0.1.40

3 years ago

0.1.39

3 years ago

0.1.38

3 years ago

0.1.37

3 years ago

0.1.36

3 years ago

0.1.35

3 years ago

0.1.34

3 years ago

0.1.33

3 years ago

0.1.32

3 years ago

0.1.31

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago