> For the complete documentation index, see [llms.txt](https://docs.carpose.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.carpose.de/components/08_wishlist.md).

# Wishlist

{% hint style="warning" %}
The Wishlist is a **feature of the** [**Vehicle Search Form**](/vehicle-search-modules/01_vehicle-search-form.md), not a standalone embeddable component. There is no `data-carpose-component="wishlist"` — it is enabled with the `data-wishlist` attribute on the search form.
{% endhint %}

## Introduction

When wishlist functionality is enabled, visitors can save vehicles to a favourites list that persists between sessions (stored in the browser's `localStorage`). A floating wishlist button gives access to a slide-out drawer of saved vehicles, from which the visitor can send an inquiry, remove vehicles, or open a vehicle's detail page.

## Enabling the Wishlist

```html
<div
  data-carpose-component="vehicle-search-form"
  data-api-key="your-api-key"
  data-wishlist="true"
></div>
```

## Behavior

* A wishlist button appears on each vehicle card, and a floating wishlist button gives access to the saved-vehicles drawer
* Wishlist state persists across sessions via `localStorage`
* Visitors can send inquiries for multiple saved vehicles at once
* Success messages are shown when adding or removing vehicles

## Notes

* The wishlist is stored per-browser; no account is required
* See also [Vehicle Comparison](/components/09_vehicle-comparison.md), which can be enabled alongside the wishlist
* For the full list of search-form options, see the [Vehicle Search Form](/vehicle-search-modules/01_vehicle-search-form.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.carpose.de/components/08_wishlist.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
