Wrap
Wrap
is a component that has wrap
set on Flex
. It inherits convenient style shorthand from Flex
.
Import
import { Wrap } from "@yamada-ui/react"
Usage
Editable example
<Wrap gap="md"> <For each={Array.from({ length: 20 })}> {(_, index) => ( <For key={index} each={["primary", "secondary", "warning", "danger"]}> {(bg, nestedIndex) => ( <Box key={`${index}-${nestedIndex}`} p="md" rounded="md" bg={bg} color="white" > Box </Box> )} </For> )} </For> </Wrap>
Edit this page on GitHub