Homecomponentscontrol-flow

For

A control-flow to repeat over a list of items.

Alpha
This component is in development. There could be breaking changes made to it in a non-major release of Prism. Please use with caution.

Use For to iterate over a list.

1
2
3

Fallback

Use the fallback property to render a fallback component if the list is empty.

No items

API

each
Required
The array of items to iterate over.
readonly T[]

children
Required
The function to render an item.
(item: T, index: number) => U

fallback
The fallback to display.
Element
Table of Contents