Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 932 Bytes

File metadata and controls

41 lines (28 loc) · 932 Bytes
title Image
description Image block in a bot message.

Overview

Image embeds an image in the message by URL.

Import

import { Image } from "@copilotkit/bot-ui";

Props

The image URL. Must be reachable by the platform (Slack fetches it server-side). Alternative text for accessibility.

Usage

<Message>
  <Section>Incident timeline:</Section>
  <Image url="https://example.com/chart.png" alt="Error rate over time" />
</Message>

On Slack

Renders as an image block. To post a locally generated image (e.g. a rendered chart), upload it with thread.postFile instead — Image is for URLs.

Related