# Channel element

Displays a link to a channel.

| | |
|---|---|
| **Available in** | Messages, Modals, Home tab |
| **Used in** | [Rich text section element](https://workstation.repzo.com/docs/developers/block-kit/rich-text/rich-text-section-element), [Rich text list element](https://workstation.repzo.com/docs/developers/block-kit/rich-text/rich-text-list-element), [Rich text quote element](https://workstation.repzo.com/docs/developers/block-kit/rich-text/rich-text-quote-element) |

## Fields

| Field | Type | Description | Required? |
|---|---|---|---|
| `type` | String | The type of object; in this case, `channel`. | Required |
| `channel_id` | String | The id of the channel to link to. | Required |
| `tab_id` | String | The id of a specific tab of the channel. | Optional |
| `style` | Object | An object of optional boolean properties that dictate style: `bold`, `italic`, `strike`, `highlight`, `client_highlight`, `underline` and `unlink`. | Optional |

> **How Repzo Chat differs from Slack**
>
> - `channel_id` is a Repzo channel id. The name is looked up when the message is posted; private channels and unknown ids show as `#channel`, so a private channel's name never reaches readers outside it.
> - `tab_id` and `style` are ignored.

## Examples

### A channel link

```json
{
  "blocks": [
    {
      "type": "rich_text",
      "elements": [
        {
          "type": "rich_text_section",
          "elements": [
            {
              "type": "text",
              "text": "Escalations are now handled in "
            },
            {
              "type": "channel",
              "channel_id": "a7d41c90-2e5b-4f83-b6c1-0e9f2d84a517"
            },
            {
              "type": "text",
              "text": "."
            }
          ]
        }
      ]
    }
  ]
}
```

## Related

- [Rich text elements](https://workstation.repzo.com/docs/developers/block-kit/rich-text)
- [Block Kit overview](https://workstation.repzo.com/docs/developers/block-kit)
