---
title: "Carousel, MailKaro Docs"
description: "Carousel in MailKaro: an image slider (rendered as a stacked, email-safe fallback). For React, Vue, Angular and plain JavaScript."
---

# Carousel

Content blocks

# Carousel

An image slider (rendered as a stacked, email-safe fallback).

## Options

- Slides (image + link)
- Alignment and spacing

## How it renders

Email clients do not run scripts, so the HTML export stacks the slides one under another, each a full-width image, with a gap between them. Each slide can have its own link and, with captions on, a caption below it. In the [AMP export](https://docs.mailkaro.com/export-amp) the same slides become a swipeable ``.

## Slide values

json

```
{
 "type": "carousel",
 "values": {
 "slides": [
 { "src": "https://cdn.example.com/1.jpg", "alt": "New arrivals", "href": "https://example.com/new" },
 { "src": "https://cdn.example.com/2.jpg", "alt": "Sale", "caption": "Up to 40% off" }
 ],
 "show_caption": true
 }
}
```

Defaults: `gap` 12px, `border_radius` 12px, `width` 100 (percent) and `align` center. A slide link opens in a new tab unless it sets `target`. Merge tags work in `src`, `alt` and `href`, see [dynamic images](https://docs.mailkaro.com/dynamic-images).

## Common mistake

A carousel with no slides still exports a short line asking you to add slides, so remove an empty carousel before you send.

Source: https://docs.mailkaro.com/block-carousel
