--- title: Separator description: "`Separator` is a component that represents a division between elements." links: - style: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/separator/separator.style.ts - source: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/separator - storybook: https://yamada-ui.github.io/yamada-ui?path=/story/components-separator--horizontal --- ```tsx ``` ## Usage ```tsx import { Separator } from "@yamada-ui/react" ``` ```tsx import { Separator } from "@/components/ui" ``` ```tsx import { Separator } from "@workspaces/ui" ``` ```tsx ``` ### Change Variant ```tsx {(variant, index) => } ``` ### Change Size ```tsx {(size, index) => } ``` ### Change Color To change the color, set `borderColor`. ```tsx ``` ### Vertical ```tsx First Second ``` ### Label ```tsx Label Label Label ``` ## Props | Prop | Default | Type | Description | | ------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ | | `as` | - | `As` | The HTML element to render. | | `asChild` | - | `boolean` | Merges its props onto its immediate child. | | `css` | - | `CSSObject \| CSSObject[]` | The CSS object. | | `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. | | `size` | `"md"` | `"lg" \| "md" \| "sm" \| "xs"` | The size of the component. | | `variant` | `"solid"` | `"dashed" \| "dotted" \| "solid"` | The variant of the component. | | `orientation` | `"horizontal"` | `"horizontal" \| "vertical"` | The orientation of the divider. |