The Divider widget displays a horizontal line spanning the width of a card between stacked widgets. The line is a visual divider that helps users distinguish between one widget and another, making cards easier to scan and understand.

Design and preview cards with the Card Builder.

Open the Card Builder

The following is a card consisting of Divider widgets between other types of widgets:

JSON representation

Displays a divider between widgets as a horizontal line. For an example in Google Chat apps, see Divider.

Available for Google Chat apps and Google Workspace Add-ons.

For example, the following JSON creates a divider:

"divider": {}


When a Google Chat app or card returns an error, the Chat interface surfaces a message saying "Something went wrong." or "Unable to process your request." Sometimes the Chat UI doesn't display any error message, but the Chat app or card produces an unexpected result; for example, a card message might not appear.

Although an error message might not display in the Chat UI, descriptive error messages and log data are available to help you fix errors when error logging for Chat apps is turned on. For help viewing, debugging, and fixing errors, see Troubleshoot and fix Google Chat errors.