eo-n/ui
UIComponentsSeparator

Separator

Creates a visual division between content sections.

Profile

Account settings and preferences

Billing

Manage billing information and view receipts

Installation

CLI

npx shadcn@latest add "https://eo-n.vercel.app/r/separator"

Manual

Copy and paste the following code into your project.

import * as React from "react";
import { Separator as SeparatorPrimitive } from "@base-ui-components/react/separator";
 
import { cn } from "@/lib/utils";
 
function Separator({
  className,
  orientation = "horizontal",
  ...props
}: React.ComponentProps<typeof SeparatorPrimitive>) {
  return (
    <SeparatorPrimitive
      data-slot="Separator"
      orientation={orientation}
      className={cn(
        "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
        className
      )}
      {...props}
    />
  );
}
 
export { Separator };
Update the import paths to match your project setup.

Usage

Import all parts and piece them together.

import { Separator } from "@/components/ui/separator";
<Separator />

Examples

Vertical Orientation

HomeProductsAboutContact

On this page