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 DividerCustomDemo() {
return (
<div className="w-full max-w-sm text-center">
<p className="text-sm text-neutral-900 dark:text-neutral-50">Account</p>
<Divider aria-hidden className="my-2 border-4 rounded-full" />
<p className="text-sm text-neutral-900 dark:text-neutral-50">
Preferences
</p>
</div>
);
}






