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:
| Attribute | Type | Description | Default |
|---|---|---|---|
dealer-id | number | Your unique dealer identifier | Required |
locale | string | Language and region code | en-us |
store-type | string | Type of rentals (rv or auto) | rv |
Theming
| Attribute | Type | Description | Default |
|---|---|---|---|
primary-color | string | Main accent color for buttons and links | #212831 |
secondary-color | string | Secondary UI elements | #4F5B69 |
text-color | string | Primary text color | #1F2937 |
text-secondary-color | string | Secondary text (labels, descriptions) | #6B7280 |
surface-color | string | Background color for cards | #FFFFFF |
Analytics
| Attribute | Type | Description |
|---|---|---|
segment-token | string | Segment analytics token |
google-tag-manager-id | string | GTM container ID |
google-analytics-id | string | Google Analytics ID |
wheelbase-store
The complete rental store with hero section, filters, and listings.
Attributes
| Attribute | Type | Description | Default |
|---|---|---|---|
hide-filters | boolean | Hide the filter sidebar | false |
hide-hero | boolean | Hide the hero banner section | false |
background-color | string | Background color of the component | - |
visible-filters | string | Comma-separated list of top-level filters to show | All |
visible-nested-filters | string | Comma-separated list of modal filter sections | All |
Filter Options
Top-level filters (visible-filters):
type- Vehicle type filterprice- Price range filter (Auto only)filters- Opens the filters modal
Nested filters for RV (visible-nested-filters):
guests- Number of guestsrules- Rules & policiesamenities- Amenities
Nested filters for Auto (visible-nested-filters):
price- Price rangeguests- Number of guestsvehicle_type- Vehicle typemake_model- Make and modelyear- Year rangetransmission- Transmission typefuel- Fuel typedrivers_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
| Attribute | Type | Description |
|---|---|---|
filters | JSON | Pre-defined filter values |
on-rental-click | function | Callback 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
| Attribute | Type | Description |
|---|---|---|
rental-id | number | The ID of the rental to display |
Example
<listing-details
dealer-id="YOUR_DEALER_ID"
rental-id="143905"
></listing-details>Supported Locales
| Locale | Language |
|---|---|
en-us | English (US) |
en-ca | English (Canada) |
en-gb | English (UK) |
en-au | English (Australia) |
en-nz | English (New Zealand) |
fr-fr | French (France) |
fr-ca | French (Canada) |
de-de | German |
es-es | Spanish |
it-it | Italian |
Last updated on