# Emoji element

Displays an emoji.

| | |
|---|---|
| **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, `emoji`. | Required |
| `name` | String | The name of the emoji, e.g. `white_check_mark` or `wave::skin-tone-2`. | Required |
| `unicode` | String | The emoji's Unicode code points in hex, joined with `-` (e.g. `1f389`), where applicable. | Optional |

> **How Repzo Chat differs from Slack**
>
> - When `unicode` is valid hex code points it is used as is; otherwise the emoji is looked up by `name`, and a name Repzo doesn't know shows as `:name:`.
> - Custom workspace emoji aren't supported.

## Examples

### Status emoji

```json
{
  "blocks": [
    {
      "type": "rich_text",
      "elements": [
        {
          "type": "rich_text_section",
          "elements": [
            {
              "type": "emoji",
              "name": "white_check_mark"
            },
            {
              "type": "text",
              "text": " Payment received  "
            },
            {
              "type": "emoji",
              "name": "tada",
              "unicode": "1f389"
            },
            {
              "type": "text",
              "text": " Deal closed"
            }
          ]
        }
      ]
    }
  ]
}
```

## 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)
