// Layout
Separator
Visually separate content with a line.
// Rendering preview…
// Install
npx shadcn@latest add @dakik/separator// Usage
1import { Separator } from "@/components/ui/separator";23<Separator />// Code
1"use client";23import { ark } from "@ark-ui/react/factory";4import { cn } from "@/lib/utils";56interface SeparatorProps extends React.ComponentProps<typeof ark.div> {7 /**8 * The orientation of the separator.9 *10 * @default "horizontal"11 */12 orientation?: "horizontal" | "vertical";13}1415export const Separator = (props: SeparatorProps) => {16 const { orientation = "horizontal", className, ...rest } = props;1718 return (19 <ark.div20 aria-orientation={orientation}21 className={cn(22 "shrink-0",23 "bg-input",24 "data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full",25 "data-[orientation=vertical]:w-px data-[orientation=vertical]:not-[[class^='h-']]:not-[[class*='_h-']]:self-stretch",26 className27 )}28 data-orientation={orientation}29 data-slot="separator"30 role="separator"31 {...rest}32 />33 );34};35// Dependencies