Introducing PrimeReact v11-alpha 🎉Discover Now

Divider

Divider is used to separate contents.

Invoice No
0000123
Issued
01/01/2026
Due Date
02/02/2026
From
PrimeTek
To
preview

Installation#

npx shadcn@latest add @primereact/divider

Usage#

import { Divider, DividerContent } from '@/components/ui/divider';
<Divider />

Examples#

Basic#

Subtotal$89.00
Shipping$5.99
Total$94.99
basic-demo

Type#

Style of the border is configured with the type property that can either be solid, dotted or dashed.

Fast setup, no credit card required

Cancel anytime from your account

24/7 support included

No long-term commitments

type-demo

Vertical#

Vertical divider is enabled by setting the orientation property as vertical.

Invoice No
0000123
Issued
01/01/2026
Due Date
02/02/2026
vertical-demo

Content#

Children are rendered within the boundaries of the divider where location of the content is configured with the align property. In horizontal orientation, alignment options are left, center andright whereas vertical mode supports top, center and bottom.

Fast setup with a simple onboarding process, no credit card required to get started.

Cancel anytime directly from your account settings, with no questions asked.

24/7 support included to help you resolve issues quickly, whenever you need assistance.

No long-term commitments or hidden contracts, just transparent and flexible pricing.

content-demo

Accessibility#

Screen Reader#

Divider uses a separator role with aria-orientation set to either "horizontal" or "vertical".

Keyboard Support#

Component does not include any interactive elements.