# Separator A component for visually separating content with a line. ```jsx featured My Movie A movie made by me ``` ```css preview .separator[data-direction] { &[data-direction="horizontal"] { width: 100%; height: 1px; } &[data-direction="vertical"] { height: 100%; width: 1px; } &[data-variant="solid"]:not([data-direction="vertical"]) { border-top: 1px solid rgb(var(--border-color)); } } ``` [View Source](https://github.com/LocusInc/locus-ui/tree/main/packages/locus-ui/src/components/separator) ## Anatomy ```jsx code no-header ``` ## Examples ### Variants The `variant` prop controls the line style: `solid` (default), `dashed`, or `dotted`. ```jsx {["solid", "dashed", "dotted"].map((variant) => ( {variant.charAt(0).toUpperCase() + variant.slice(1)} ))} ``` ### Directions The `direction` prop controls the orientation: `horizontal` (default) or `vertical`. ```jsx Top Text Bottom Text Left Text Right Text ```