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 DividerDemo() {
return (
<div className="flex flex-col w-full max-w-sm gap-4">
<Divider>CENTER</Divider>
<Divider align="start">START</Divider>
<Divider align="end">END</Divider>
<Divider>
<span className="inline-flex items-center rounded-full border border-neutral-300 dark:border-neutral-700 px-2 py-0.5 text-xs font-medium text-neutral-900 dark:text-neutral-50">
CENTER
</span>
</Divider>
</div>
);
}






