Divider

A dividing line to separate content. It supports optional text to render within the line.

Properties

Available properties for Divider with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.

NameTypeDescriptionhiddenboolean

Whether the component is visible.

horizontalAlign'center' | 'left' | 'right'

The horizontal alignment of the contents.

maintainSpaceWhenHiddenboolean

Whether the component takes up space on the canvas if hidden is true.

marginstring

The amount of margin to render outside of the component.

showInEditorboolean

Whether the component remains visible in the editor if hidden is true.

textstring

The primary text content.

textSize'default' | 'h6' | 'h5' | 'h4' | 'h3' | 'h2' | 'h1'

The text size.

tooltipTextstring

The text to display in a tooltip on hover or focus.

Methods

Methods for interacting with Divider. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.

NameDescriptionscrollIntoView(options: any)

Scrolls the canvas or parent container so that the selected component appears in the visible area.

setHidden(hidden: boolean)

Set the hidden value to toggle whether the component is visible. Defaults to true without a parameter.

Related components