> For the complete documentation index, see [llms.txt](https://shinyobjectlabs.gitbook.io/framework-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shinyobjectlabs.gitbook.io/framework-js/attributes/x-for.md).

# x-for

### Overview

Repeat the element for each item in the source data.

### Example

```html
<div x-for="post in posts">
    <h1 x-text="post.title"></h1>
</div>
```

### Live Demo

{% embed url="<https://stackblitz.com/edit/web-platform-uecpan?embed=1&file=index.html&hideExplorer=1&hideNavigation=1&view=preview>" %}
