Leave Yamada UI a star

Star
Yamada UIYamada UIv1.7.2

Separator

Separator is a component that represents a division between elements.

Source@yamada-ui/layouts

Import

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

Usage

Editable example

<Flex direction="column" gap="md">
  <For each={["solid", "dashed", "dotted"]}>
    {(variant, index) => <Separator key={index} variant={variant} />}
  </For>
</Flex>
Copied!

Draw a vertical dividing line

Editable example

<Flex h="sm" gap="md">
  <For each={["solid", "dashed", "dotted"]}>
    {(variant, index) => (
      <Separator key={index} orientation="vertical" variant={variant} />
    )}
  </For>
</Flex>
Copied!

Edit this page on GitHub

PreviousFloatNextDivider