For

For is a component used to loop over an array and render a component for each item.

竈門炭治郎

水の呼吸, 日の呼吸

我妻善逸

雷の呼吸

嘴平伊之助

獣の呼吸

Usage

import { For } from "@yamada-ui/react"
<For />

Fallback

Use the fallback prop to render a fallback component when the array is empty or undefined.

There are no items to show

Filter

Use the filter prop to filter the array items.

我妻善逸

雷の呼吸

嘴平伊之助

獣の呼吸

Sort

Use the sort prop to sort the array items.

我妻善逸

雷の呼吸

嘴平伊之助

獣の呼吸

竈門炭治郎

水の呼吸, 日の呼吸

Change Offset

To start from a specific element in the array, set the starting position in offset.

我妻善逸

雷の呼吸

嘴平伊之助

獣の呼吸

Limit Display Count

To limit the number of items displayed, set the limit.

竈門炭治郎

水の呼吸, 日の呼吸

我妻善逸

雷の呼吸

Reverse Order

To reverse the order, set reverse to true.

嘴平伊之助

獣の呼吸

我妻善逸

雷の呼吸

竈門炭治郎

水の呼吸, 日の呼吸

Props