---
title: carousel
description: A paged horizontal strip of `count` items with an `activeIndex` — a swipe affordance drawn, not implemented.
status: shipped
url: https://getairframe.com/framewerk/reference/nodes/carousel
---

> Part of the Framewerk docs. Index of every page: /framewerk/llms.txt

# `carousel`

A paged horizontal strip of `count` items with an `activeIndex` — a swipe affordance drawn, not implemented.

## Example

**carousel**

```json
{
  "id": "home",
  "layout": {
    "_id": "root",
    "type": "column",
    "gap": 12,
    "padding": 16,
    "children": [
      {
        "_id": "c",
        "type": "carousel",
        "count": 4,
        "activeIndex": 1,
        "height": 120
      },
      {
        "_id": "cap",
        "type": "text",
        "variant": "caption",
        "content": "Page 2 of 4"
      }
    ]
  }
}
```

## States

`activeIndex`, `count`. Common to every node: `hover` / `press` / `focus` CSS bags, `showWhen` / `hideWhen`, `animate`.

## Stability

This node type is part of the format contract: adding an optional prop is additive; removing the node or narrowing an existing prop is breaking. Prop tables are generated from the schema; this page carries the prose.
