---
title: ForEach
description: JSON Schema for the ForEach component.
---

Repeat children for each item in a data list.

```json
{
  "type": "object",
  "properties": {
    "type": {
      "const": "ForEach",
      "default": "ForEach",
      "type": "string"
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling. Accepts a Responsive() for breakpoint-aware classes."
    },
    "children": {
      "type": "array",
      "items": {
        "$ref": "Component"
      }
    },
    "let": {
      "additionalProperties": true,
      "type": [
        "object",
        "null"
      ],
      "default": null,
      "description": "Scoped bindings available to children. Values are template strings."
    },
    "key": {
      "description": "Data field containing the list to iterate over",
      "type": "string"
    }
  },
  "required": [
    "type",
    "key"
  ]
}
```
