Claude window
A picture of a Claude conversation that calls your connector, for a product page.
- You said:
How many hours did we log on the Harbor site last week?
Used Tally Read week 45 timesheets
- Claude said:
Your team logged 86 hours on Harbor in week 45, 12 more than week 44.
Person Hours Ines 34 Marco 29 Yuki 23 Most of the rise is Ines's Thursday on the roof survey.
Installation
pnpm add @heyramzi/uiUsage
import { ClaudeWindow, type ChatMessage } from "@heyramzi/ui/ai/chat-window";Keyboard and accessibility
- The window is a figure named after the conversation. A screen reader gets the messages as text, each opened by who said it, and skips the bar, the composer and the icons.
- Nothing in it takes focus or answers a click: every control is a drawing.
- With reduced motion on, the reveal doesn't play and the finished conversation shows.
API reference
titlerequiredstring- The conversation's name, shown in the bar and read out as the picture's label.
messagesrequiredChatMessage[]modelstring- Default
"Opus 5.5" - The model picker in the composer.
placeholderstring- Default
"Reply to Claude…" theme"light" | "dark" | "auto"- Default
"auto" revealboolean- Default
false - Plays the messages in once the window is on screen. Off, it is a still.
activeboolean- Default
true - With `reveal`, plays each time this turns on, for a rotator.
ondone() => void- Called after the reveal ends and `hold` ms have passed.
holdnumber- Default
4000 frameboolean- Default
true - Draws macOS's traffic lights, as the desktop app.
labelsPartial<ClaudeLabels>- Default
{} classstring- Default
""
| Prop | Type | Default |
|---|---|---|
title required The conversation's name, shown in the bar and read out as the picture's label. | string | |
messages required | ChatMessage[] | |
model The model picker in the composer. | string | "Opus 5.5" |
placeholder | string | "Reply to Claude…" |
theme | "light" | "dark" | "auto" | "auto" |
reveal Plays the messages in once the window is on screen. Off, it is a still. | boolean | false |
active With `reveal`, plays each time this turns on, for a rotator. | boolean | true |
ondone Called after the reveal ends and `hold` ms have passed. | () => void | |
hold | number | 4000 |
frame Draws macOS's traffic lights, as the desktop app. | boolean | true |
labels | Partial<ClaudeLabels> | {} |
class | string | "" |