About
A horizontal or vertical line that visually separates sections of content, optionally with centered/start/end-aligned label text or an icon in the middle. Ported from the RockSolid (SolidJS) Divider component by Darshan Rajadhyaksha.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Divider to your project and fits it to your theme.
Code
How Divider is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Divider from "@/components/ui/divider";
export default function DividerVerticalDemo() {
return (
<div className="flex items-center h-10 rounded-lg border border-neutral-300 dark:border-neutral-700">
<button className="h-full px-4 text-sm text-neutral-900 dark:text-neutral-50 hover:bg-neutral-100 dark:hover:bg-neutral-800 rounded-none rounded-tl-[inherit] rounded-bl-[inherit]">
Edit
</button>
<Divider aria-hidden orientation="vertical" />
<button className="h-full px-4 text-sm text-neutral-900 dark:text-neutral-50 hover:bg-neutral-100 dark:hover:bg-neutral-800 rounded-none">
Duplicate
</button>
<Divider aria-hidden orientation="vertical" />
<button className="h-full px-4 text-sm text-neutral-900 dark:text-neutral-50 hover:bg-neutral-100 dark:hover:bg-neutral-800 rounded-none rounded-tr-[inherit] rounded-br-[inherit]">
Delete
</button>
</div>
);
}






