Skip to main content

Line


Line elements render a horizontal divider used to visually separate content blocks. Unlike the Bar or Spacer, a Line draws a distinct visual break without structural padding. It provides a simple and accessible way to delineate grouped UI content.

Properties

PropertyValueDescription
TypeLineUI component type
GroupGapBelongs to the Gap group
Identifier29Unique element ID
PreviewSee image preview above
Read-onlyStatic display element
ChildrenNot a container
EventDoes not emit events
ValueNot applicable
Text, IconNot applicable
ShadeNo background fill

Usage Example

<>
<Section title="Session Notes" />
<Regular>Details about the appointment...</Regular>
<Line />
<Section title="Charges" />
<Regular>Breakdown of cost and entries...</Regular>
</>

SDK Integration

The Message Chat View uses the Line element to visually separate blocks of incoming and outgoing messages, as well as to mark unread transitions. Linked to:

Method: /messages/user-chat

This route initializes the appointment support chat interface and inserts Line components as dividers across message history and content threads.


Example UI Placement

LevelIDTypeDescription
2new-message-line (top)LineDivider above unread banner
2new-message-line (bottom)LineDivider below unread banner
1line (divider)LineMessage group separator

Notes

  • Use to divide sections inside scrollable or chat views.
  • Combine with Spacer for extra margin above or below.
  • Does not support interactivity, text, or icons.