Skip to content

Divider

Visually separates content horizontally or vertically.

First release: 1.0.0 Latest update: July 1, 2025 Current version: 1.0.0

React Angular Vue Svelte HTML

Import

import { PlusDivider } from '@plusui/react';
import { PlusDividerComponent } from '@plusui/angular';
import { PlusDivider } from '@plusui/vue';
import PlusDivider from '@plusui/svelte';
<script src="https://cdn.jsdelivr.net/npm/@plusui/core"></script>

Package

@plusui/react
@plusui/angular
@plusui/vue
@plusui/svelte
@plusui/core

Docs

Changelog

Divider Changelog

Recent changes and updates for the divider component

v1.0.0

June 20, 2025
Feat

Added Divider component for content separation

  • Horizontal and vertical orientations
  • Content support with positioning
  • Multiple styles: solid, dashed, dotted
  • Customizable thickness

The Divider component is used to create a visual separation between sections of content or groups of elements. It can be oriented horizontally or vertically and supports different line styles and thicknesses.

Divider - anatomy

A standard horizontal divider.

Content above

Content below

Show code

Use the orientation prop to set the divider direction. Vertical dividers require a defined height on the divider or its container.


Left

Right

Show code

The kind prop changes the line style.

Solid (Default)

Dashed

Dotted

Show code

The thickness prop adjusts the line thickness.

Thin (Default)

Medium

Thick

Show code

Place text or other elements in the default slot to display content within the divider line.

Text
Show code
Divider - layout spacing Divider - light & dark mode
  • Screen Reader:
    • The component uses role="separator" implicitly via the host element or explicitly depending on context, indicating its purpose as a separator.
    • It is typically non-interactive and not included in the tab order.
    • If the divider contains text content (via the slot), ensure the text itself is meaningful or provides context.
  • Required Developer Actions:
    • Use dividers semantically to separate distinct groups of content. Avoid using them purely for decoration if a simple margin or padding would suffice.
    • Ensure sufficient visual contrast between the divider line and the background, especially when customizing colors using --divider-color.
Site favicon Plus UI Design System on Figma
Visit
NameTypeDefaultDescriptionRequired
orientation'horizontal' | 'vertical''horizontal'Sets the orientation of the divider.No
kind'solid' | 'dashed' | 'dotted''solid'Sets the line style of the divider.No
thickness'thin' | 'medium' | 'thick''thin'Sets the thickness of the divider line.No
NameDescription
default (unnamed)Optional content to display within the divider line.
PartDescription
dividerThe main container element (div).
labelThe container for the slotted content (when content is present).
NameDescription
--divider-colorControls the color of the divider line.
--divider-thicknessControls the thickness of the divider line.
--divider-spacingControls the spacing around the divider.

Join the Community

Plus UI is built by the community. Join us on our platforms to contribute, get help, and stay up to date.