f0rextasy

Separator

Component

About

A horizontal or vertical dividing line used to visually separate grouped content, with an optional dashed style.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Separator to your project and fits it to your theme.

Code

How Separator is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

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

export default function SeparatorDemo() {
  return (
    <div className="flex w-full min-h-[320px] items-center justify-center bg-background p-8">
      <div className="w-full max-w-sm space-y-6">
        <div className="space-y-1">
          <p className="text-sm font-medium text-foreground">Section A</p>
          <p className="text-sm text-muted-foreground">
            Content for the first section goes here.
          </p>
        </div>
        <Separator dashed />
        <div className="space-y-1">
          <p className="text-sm font-medium text-foreground">
            Section B (dashed)
          </p>
          <p className="text-sm text-muted-foreground">
            Content for the second section goes here.
          </p>
        </div>
        <Separator dashed={false} />
        <p className="text-xs text-muted-foreground">Solid rule</p>
        <div className="flex h-5 items-center gap-4 text-sm text-foreground">
          <span>Docs</span>
          <Separator orientation="vertical" dashed={false} />
          <span>Source</span>
          <Separator orientation="vertical" dashed={false} />
          <span>Examples</span>
        </div>
      </div>
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    21
  • Stamp Seal

    Stamp Seal

    18
  • Network Graph

    Network Graph

    18
  • Board Checklist

    Board Checklist

    17
  • Navbar

    Navbar

    14
  • Running Order Timeline

    Running Order Timeline

    13
  • Milestone Chart

    Milestone Chart

    11
  • Empty State Card

    Empty State Card

    9