Leave Yamada UI a star

Star
Yamada UIYamada UIv1.7.3

Wrap

Wrap is a component that has wrap set on Flex. It inherits convenient style shorthand from Flex.

Source@yamada-ui/layouts

Import

import { Wrap } from "@yamada-ui/react"
Copied!

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>
Copied!

Edit this page on GitHub

PreviousFlexNextCenter