JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q29837F
  • License MIT

React Shipping Form Component for Limelight

Package Exports

  • cp-react-px-shipping

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cp-react-px-shipping) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

CP React Shipping Package

Please follow the instructions to use this package in React App:

Import Package/Component

import ShippingComponent from "cp-react-px-shipping/build/ShippingForm"

Use the component

<ShippingForm />

You can also set redirect url

User will be redirected to this url after successful submission

<ShippingForm redirect="/checkout" /> 

Configuration props

You can pass some config values in the prop config

<ShippingForm config={{
    COMPAIGN_ID: 1,
    PRODUCT_ID: 1,
    SHIPPING_ID: 1
}} /> 

you can re order form fields and hide/show

You can re-order form fields using fields prop and set value to -1 to hide the field

<ShippingForm fields={{
    firstName: 1,
    lastName: 2,
    city: 3,
    state: -1
}} />