Spacer - Separator - Divider

This article describes about the Spacer, Separator and Divider components

Spacer, Separator and Divider lets you organize your content in your paywall. They have different purposes and you can use them in different use cases.

Spacer

Spacer creates empty space between elements. It helps you in adjusting the layout spacing without adding visual elements. With spacer component, you have an option of expand fill.
Example: A flexible gap between two components as shown in the following.


Divider

Divider Visually separates the content with a line. It helps you splitting sections clearly (e.g., between a list of items).
Example: A horizontal line between menu items and you can also add text in the divider to create an visual of presenting an option.

Separator

Separator lets you split between group of components with a visible line. It helps you in Indicating the logical separation, often more subtle than a divider.

Quick difference between a Spacer, Divider and Separator

FeatureSpacerDividerSeparator
PurposeAdds empty spaceCreates a visible lineDistinguishes items
VisualInvisibleUsually a line and some textUsually a line
Use caseAdjusting layout spacingSplitting sectionsSeperating components