Skip to main content

Divider Component

Designing Your App

Written by BeyondCart

Last updated: March 2026 Category: Designing Your App

Overview

The Divider component adds a horizontal line separator between sections on your app's home screen. It's a simple but effective way to visually break up content, create breathing room, and improve the overall readability of your layout. Despite its simplicity, the Divider is fully customizable.

How to Use

Adding a Divider

  1. Drag the Divider component from the Component Palette into the Phone Preview.

  2. Drop it between the two components you want to separate.

  3. Click on it to open the Inspector Panel.

[Screenshot: Divider component placed between a Products section and a Testimonials section in the Phone Preview]

Customizing the Divider

In the Layout and Settings tabs, adjust the following properties:

  • Thickness — Set the height of the divider line in pixels. A value of 1 creates a thin hairline, while 2–3 pixels gives a more visible separator.

  • Color — Choose the line color using the color picker or enter a hex value. Light grays are commonly used for subtle separation, while bolder colors can create visual accents.

  • Width — Set the divider width as a percentage of the screen. Use 100% for a full-width line or a smaller percentage (e.g., 60%) for a centered, shorter divider.

[Screenshot: Inspector Panel showing thickness, color, and width settings for a Divider]

Spacing

  • Margin top — Add space above the divider to push it away from the component above.

  • Margin bottom — Add space below the divider to push away the component below.

  • Margin left / right — Add horizontal margins if you want the divider inset from the screen edges.

Settings

  • Style — Choose between solid, dashed, or dotted line styles.

  • Opacity — Adjust the transparency of the divider line. Lower values create a more subtle separator.

Tips

  • Use dividers sparingly. Too many lines can make your layout feel cluttered rather than organized. Often, generous spacing (margins) between components is enough.

  • A light gray divider (e.g., #E0E0E0 or #EEEEEE) with 1 pixel thickness creates a clean, modern separation that doesn't compete with your content.

  • For a more design-forward look, use a shorter width (50–70%) centered on the screen instead of a full-width line.

  • Dividers work well between content sections that would otherwise blend together, such as between a text block and a product grid.

  • If you need visual separation without a visible line, consider using an invisible divider — set the color to transparent and use only the margins for spacing.

  • Dashed or dotted styles can add personality to your layout when used thoughtfully. They work well for playful or casual brands.

Related Articles

Did this answer your question?