Skip to Content

Customization

Customize the embedded components using HTML attributes. All attribute names use kebab-case (e.g., dealer-id, primary-color).

Try out these options live on the Interactive Demo page to see how they affect the components in real-time.

Common Attributes

These attributes are available on all components:

AttributeTypeDescriptionDefault
dealer-idnumberYour unique dealer identifierRequired
localestringLanguage and region codeen-us
store-typestringType of rentals (rv or auto)rv

Theming

AttributeTypeDescriptionDefault
primary-colorstringMain accent color for buttons and links#212831
secondary-colorstringSecondary UI elements#4F5B69
text-colorstringPrimary text color#1F2937
text-secondary-colorstringSecondary text (labels, descriptions)#6B7280
surface-colorstringBackground color for cards#FFFFFF

Analytics

AttributeTypeDescription
segment-tokenstringSegment analytics token
google-tag-manager-idstringGTM container ID
google-analytics-idstringGoogle Analytics ID

wheelbase-store

The complete rental store with hero section, filters, and listings.

Attributes

AttributeTypeDescriptionDefault
hide-filtersbooleanHide the filter sidebarfalse
hide-herobooleanHide the hero banner sectionfalse
background-colorstringBackground color of the component-
visible-filtersstringComma-separated list of top-level filters to showAll
visible-nested-filtersstringComma-separated list of modal filter sectionsAll

Filter Options

Top-level filters (visible-filters):

  • type - Vehicle type filter
  • price - Price range filter (Auto only)
  • filters - Opens the filters modal

Nested filters for RV (visible-nested-filters):

  • guests - Number of guests
  • rules - Rules & policies
  • amenities - Amenities

Nested filters for Auto (visible-nested-filters):

  • price - Price range
  • guests - Number of guests
  • vehicle_type - Vehicle type
  • make_model - Make and model
  • year - Year range
  • transmission - Transmission type
  • fuel - Fuel type
  • drivers_age - Driver’s age

Examples

Basic usage:

<wheelbase-store dealer-id="YOUR_DEALER_ID"></wheelbase-store>

With customization:

<wheelbase-store dealer-id="YOUR_DEALER_ID" locale="fr-ca" store-type="rv" hide-hero primary-color="#2563EB" secondary-color="#3B82F6" text-color="#111827" surface-color="#F9FAFB" ></wheelbase-store>

With specific filters:

<wheelbase-store dealer-id="YOUR_DEALER_ID" visible-filters="type,filters" visible-nested-filters="guests,amenities" ></wheelbase-store>

wheelbase-rentals-list

Just the rental grid without hero or filters. Useful for custom layouts.

Attributes

AttributeTypeDescription
filtersJSONPre-defined filter values
on-rental-clickfunctionCallback when a rental is clicked (receives rental ID)

Examples

Basic usage:

<wheelbase-rentals-list dealer-id="YOUR_DEALER_ID"></wheelbase-rentals-list>

With click handler:

<wheelbase-rentals-list dealer-id="YOUR_DEALER_ID" id="rentals-list" ></wheelbase-rentals-list> <script> // Define a named function on window (required for r2wc) window.handleRentalClick = function handleRentalClick(rentalId) { console.log('Rental clicked:', rentalId) // Navigate to details, open modal, etc. } // Set the handler on the element document.getElementById('rentals-list').onRentalClick = window.handleRentalClick </script>

listing-details

Individual rental details with booking interface.

Attributes

AttributeTypeDescription
rental-idnumberThe ID of the rental to display

Example

<listing-details dealer-id="YOUR_DEALER_ID" rental-id="143905" ></listing-details>

Supported Locales

LocaleLanguage
en-usEnglish (US)
en-caEnglish (Canada)
en-gbEnglish (UK)
en-auEnglish (Australia)
en-nzEnglish (New Zealand)
fr-frFrench (France)
fr-caFrench (Canada)
de-deGerman
es-esSpanish
it-itItalian
Last updated on