> 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/04_vehicle-slider.md).

# Vehicle Slider

{% hint style="info" %}
The Vehicle Slider displays a carousel of inventory vehicles, ordered randomly or by newest first.
{% endhint %}

## Introduction

The `vehicle-slider` component renders an interactive carousel of vehicles from your inventory. It is ideal for showcasing featured vehicles on landing pages or highlighting specific stock.

## Basic Usage

```html
<div
  data-carpose-component="vehicle-slider"
  data-api-key="your-api-key"
></div>
```

## Attributes

| Attribute                | Required | Description                                                |
| ------------------------ | -------- | ---------------------------------------------------------- |
| `data-carpose-component` | Yes      | Must be `vehicle-slider`                                   |
| `data-api-key`           | Yes      | Your Carposé API key                                       |
| `data-limit`             | No       | Number of vehicles to display (default `10`)               |
| `data-order`             | No       | Order of vehicles, `random` or `newest` (default `random`) |
| `data-store-id`          | No       | Restrict to a single store                                 |
| `data-vehicle-type`      | No       | Filter by vehicle type                                     |

## Behavior

* Fetches vehicles from your inventory based on the configuration
* Carousel with touch/swipe support and navigation arrows
* Responsive and lazy-loads images

## Notes

* Hidden if no vehicles match the criteria
* See also Vehicle Similarity Slider for "you may also like" carousels


---

# 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/04_vehicle-slider.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.
