๐Ÿš— 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

<cd-price-check-widget-card bff-url="https://your-bff-url.com" token="your-auth-token" pickup-zip="85044" vehicle-vin="1HGBH41JXMN109186" year="2021" make="Honda" model="Accord" operability="operable" partner-id="DEMO" ></cd-price-check-widget-card>

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

<cd-price-check-widget-banner bff-url="https://your-bff-url.com" token="your-auth-token" pickup-zip="10001" dropoff-zip="90210" vehicle-vin="JH4KA7561MC010714" year="2020" make="Acura" model="NSX" operability="operable" partner-id="DEMO" ></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

Available Properties

Events

Example Event Listener

const widget = document.querySelector('cd-price-check-widget'); widget.addEventListener('priceLoaded', (event) => { const { minPrice, maxPrice, distance } = event.detail; console.log(`Price: $${minPrice} - $${maxPrice} for ${distance} miles`); }); widget.addEventListener('locationChanged', (event) => { const { pickupZip, dropoffZip } = event.detail; console.log(`Location changed: ${pickupZip} โ†’ ${dropoffZip}`); });