Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Divider

A simple line view used to visually separate content.

When To Use It

Use Divider between related groups of controls, list sections, toolbar regions, or panes to improve visual structure.

Constructing a Divider

use vizia::prelude::*;

Divider::new(cx);

Divider::horizontal(cx);
Divider::vertical(cx);

Reactive orientation:

Divider::new(cx).orientation(is_vertical.map(|v| {
	if *v { Orientation::Vertical } else { Orientation::Horizontal }
}));

Divider Modifiers

ModifierTypeDescriptionDefault
orientationimpl Res<Orientation>Applies horizontal or vertical divider classes.context/theme-defined

Components and Styling

SelectorDescription
dividerRoot divider element.
divider.horizontalHorizontal orientation class.
divider.verticalVertical orientation class.
divider .divider-lineInner line element.

Accessibility

Divider is decorative. Use semantic labels/headings on surrounding content when separation needs to be conveyed to assistive technologies.