> For the complete documentation index, see [llms.txt](https://thebuildex.gitbook.io/enoria/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thebuildex.gitbook.io/enoria/guide/widgets/listbuilder.md).

# ListBuilder

If your need to display a grid of a large or infinite number of items (a list of items fetched from API, for instance) then you should use ListBuilder.

The **builder function**  that you provide is called only for those items that are actually visible so your game performance will be improved.

```lua
...
local Items = {"First item", "Second item", "Third item"}
...
e.ListBuilder(#Items, function(index)
	return e.TextLabel(Items[index])
end)
```
