VibeUI
ComponentsDocs
VibeUI

Components with taste, that you own. Copy the source, retint the tokens, keep every line.

Library

  • All components
  • Signature pieces
  • Text effects
  • Footers

Docs

  • Introduction
  • Installation
  • Theming
  • CLI

Project

  • GitHub
  • Agents and MCP
  • Issues
  • MIT license
© 2026 VibeUI · MIT licensed
  1. Components
  2. Actions
  3. Separator

Separator

Hairline divider, horizontal or vertical.

ActionsServer-safe

VibeUI

Components you own.

Docs
Components
Source

Install

bash
npx @agents-npm-packages/vibeui add separator --dir ./src/components/ui

Import

tsx
import { Separator } from "@/components/ui/separator"

API

Generated from the component's TypeScript types, so it always matches the source. * marks a required prop.

<Separator>

PropTypeDefaultDescription
classNamestring—Extra classes, merged with the component's own.
orientation"horizontal" | "vertical""horizontal"Layout direction.
animatedboolean—Draws the line in on mount.

Source

src/components/ui/separator.tsx
import { cn } from "@/lib/utils";

/** Hairline divider, horizontal or vertical. */
export function Separator({
  className,
  orientation = "horizontal",
  animated,
}: {
  className?: string;
  orientation?: "horizontal" | "vertical";
  /** Draws the line in on mount. */
  animated?: boolean;
}) {
  return (
    <div
      role="separator"
      aria-orientation={orientation}
      className={cn(
        "shrink-0 bg-line",
        orientation === "horizontal" ? "h-px w-full" : "h-full min-h-4 w-px",
        animated &&
          (orientation === "horizontal"
            ? "origin-left animate-grow-x"
            : "origin-top animate-grow-y"),
        className,
      )}
    />
  );
}

Exports Separator. Peer dependencies: clsx, tailwind-merge.

PreviousPillNextSplit Button