Chip

A text, icon, or text and icon chip that users can click.

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

JSON representation
{
  "icon": {
    object (Icon)
  },
  "label": string,
  "onClick": {
    object (OnClick)
  },
  "enabled": boolean,
  "disabled": boolean,
  "altText": string
}
Fields
icon

object (Icon)

The icon image. If both icon and label are set, then the icon appears before the label.

label

string

The text displayed inside the chip.

onClick

object (OnClick)

Optional. The action to perform when a user clicks the chip, such as opening a hyperlink or running a custom function.

enabled
(deprecated)

boolean

Deprecated: Use disabled instead.

Whether the chip is in an active state and responds to user actions.

disabled

boolean

Whether the chip is in an inactive state and ignores user actions. Defaults to false.

altText

string

The alternative text that's used for accessibility.

Set descriptive text that lets users know what the chip does. For example, if a chip opens a hyperlink, write: "Opens a new browser tab and navigates to the Google Chat developer documentation at https://developers.google.com/workspace/chat".