๐Ÿš— CD PriceCheck Widget - Layout Demo

Testing both Banner and Card layouts with all sub-components

Environment Information

Environment:
BFF URL:

Card Layout DEFAULT

Full vertical layout with all features. Best for dedicated pricing pages or when you want to give the widget prominent placement. Includes logo, location inputs, pricing display, and value proposition.

๐Ÿงช Card Widget Test Form

Updates both the default card above and the fluid card below.

Connection
Route
Vehicle
<cd-price-check-widget-card bff-url="https://your-bff-url.com" token="your-auth-token" pickup-postal-code="85044" vin="1HGBH41JXMN109186" year="2021" make="Honda" model="Accord" is-operable="true" ></cd-price-check-widget-card>

Card Layout FLUID

Opt in with the fluid attribute to let the card grow to fit its parent container while keeping its original proportions โ€” every element scales together, so nothing reflows or distorts. The card always stays fully visible: it scales to fit within the box on whichever dimension is more constraining, with any leftover room on the other dimension showing as blank space rather than a scrollbar. If the parent has no fixed height (a normal page or popup window), the card scales to the parent's width instead and the page grows to fit it. It also never renders smaller than the fixed-size card above โ€” drag the bottom-right corner of the dashed box below and notice it won't let you shrink it past that floor.

<cd-price-check-widget-card bff-url="https://your-bff-url.com" token="your-auth-token" pickup-postal-code="85044" vin="1HGBH41JXMN109186" year="2021" make="Honda" model="Accord" is-operable="true" fluid="true" ></cd-price-check-widget-card>

Fluid card in a popup window

The dashed box above has a fixed height. Most integrators embed the card in a page that doesn't โ€” e.g. a popup window, where <body> is only as tall as its content. This opens the fluid card alone in a plain auto-height popup (using the Card Widget Test Form values) so you can resize the window and check that the card fills its width.

Card Layout MOVED BY HOST

Simulates a host page moving the same widget element to another container, as dialog and popup libraries often do. Uses the token and values from the Card form above (pickup ZIP 30318 against the local mocks). Keep DevTools Network open, filtered to price-check.

  1. Load widget creates a fresh card in the page slot. It should show a price.
  2. Move to other box, then Request new price: the card should load a new price in its new container.
  3. Set DevTools throttling to 3G, then Request + move at once (moves the card 300 ms after the request starts): the first request shows as canceled, then a retry loads the price.
  4. Detach, update, reattach removes the card, changes a prop while it's detached, and puts it back after 1 second: it should load a price for the new value.

In every case the card should never show "Due to a system error". The log below lists each move and event.

Page slot
Popup
  

Banner Layout

Compact horizontal layout optimized for space-constrained areas like headers, sidebars, or embedded sections. Shows essential information in a streamlined format.

๐Ÿงช Banner Widget Test Form

Connection
Route
Vehicle
<cd-price-check-widget-banner bff-url="https://your-bff-url.com" token="your-auth-token" pickup-postal-code="10001" dropoff-postal-code="90210" vin="JH4KA7561MC010714" year="2020" make="Acura" model="NSX" is-operable="true" ></cd-price-check-widget-banner>
<cd-price-check-widget-banner bff-url="https://your-bff-url.com" token="your-auth-token" pickup-postal-code="10001" dropoff-postal-code="90210" vin="JH4KA7561MC010714" year="2020" make="Acura" model="NSX" is-operable="true" vertical-view="true" ></cd-price-check-widget-banner>

๐Ÿ“‹ Event Log

All widget events are logged here in real-time. Watch for lifecycle events, user interactions, and API calls.

[00:00:00] INIT Event log initialized. Watching both widgets...

๐Ÿ“š Integration Guide

Required Properties

Vehicle Properties

Provide a VIN, or Year + Make + Model. At least one of the two is required.

Optional Properties

Card-Only Properties

Banner-Only Properties

Events

Card-Only Events