Divider

Android · iOS · Web
A divider is a visual element used to separate content and create visual hierarchy within a user interface.

Overview

Dividers are horizontal or vertical lines used to emphasise separation between different sections, group of content and create hierarchy within the UI. Torq offers 2 weights; default and strong.

Live demo

StartEnd
Modifiers

Usage

Do

  • Use the Divider to emphasise separation between different sections or groups of content, without drawing undue focus.

  • Avoid excessive use of Dividers, as it may clutter the interface.

  • Ensure consistent spacing and styling across Dividers in your application.

Don't

  • Don't use Dividers for purely decorative purposes. Dividers should serve a functional purpose.

  • Don't use Dividers to replace proper spacing. Dividers are not a substitute for adequate spacing between elements.

  • Don't override tthe default stroke. Torq provides 1px Dividers as the default.


Placement

Torq provides horizontal and vertical Dividers.

Place the Divider component:

  • Between different sections or groups of content.

  • Above or below headers to create space and improve readability.

  • Within lists or tables to distinguish between items.


iOS guidance

Along with the guidance above, there is some iOS specific guidance for this component.

  • Make sure Dividers adapt to the colour scheme changes seamlessly. Test Dividers in both light and dark modes to ensure visibility and aesthetic appeal.

  • Align Dividers with the underlying grid system to maintain a sense of order and consistency. Proper alignment enhances the overall visual appeal and user experience.