Divider

It is typically used to visually separate sections of content. The divider can be styled with frame, border, and padding.

Constructors

HLine

HLine configures the TDivider to be used as a horizontal hairline divider, e.g. within a TVStack. The color is derived from the main color.

HLineWithColor

HLineWithColor configures the TDivider to be used as a horizontal hairline divider, e.g. within a TVStack.

VLine

VLine configures a TDivider to be used as a vertical hairline divider, e.g. within a THStack. The color is derived from main.

VLineWithColor

VLineWithColor configures a TDivider to be used as a vertical hairline divider, e.g. within a THStack.


Methods

MethodDescription
Border(border Border)Border sets the border styling of the divider, typically its line thickness and color.
Frame(frame Frame)Frame sets the layout frame of the divider, including size and positioning.
Padding(padding Padding)Padding sets the spacing around the divider.
Visible(visible bool)

Related