export const title = "Content divider components" export const description = "Powerful and customizable React content divider components built for modern applications and websites. These content dividers are built using React Aria and styled with Tailwind CSS." import * as Demos from "@/components/application/content-divider/content-divider.demo.tsx"; ## Installation You can add this content dividers component using our CLI or manually: ```bash npx untitledui@latest add content-divider ``` Copy the files below into your project: Great! Now you can start using the content divider components in your project by just copy/pasting our examples below. ## Content dividers examples Below are examples and variations of this content dividers component: ### Single line {{ tocOnly:true }} ### Dual line {{ tocOnly:true }} ### Background fill {{ tocOnly:true }} ## API reference Today` for a subtle label, or `text-md font-semibold text-primary` for a section heading.", }, { question: "Can I change the spacing or width of a content divider?", answer: "Yes. The `className` prop is merged onto the root element, so Tailwind utilities override the built-in styles — for example `className=\"py-6\"` to loosen the `\"dual-line\"` padding. The root is `w-full`, so constrain the width by wrapping it in a container of the size you want.", }, { question: "Does the content divider need any extra dependencies?", answer: "No. It is plain React and Tailwind classes plus the shared `cx` helper from `utils/cx.ts` (built on `tailwind-merge`) that the other Untitled UI components use too. Install it with `npx untitledui@latest add content-divider`.", }, { question: "How do I keep a content divider accessible?", answer: "The divider renders a plain `div` and its rules are decorative, so it is not exposed to assistive technology as a separator. If it introduces a new section, put a real heading element inside it, and give any icon-only button in the divider an `aria-label`.", }, ]} />