Skip to content
h v3.13.3
Search the docs
Find a component, section or page.

Claude window

A picture of a Claude conversation that calls your connector, for a product page.

  1. You said:

    How many hours did we log on the Harbor site last week?

  2. Used Tally Read week 45 timesheets

  3. Claude said:

    Your team logged 86 hours on Harbor in week 45, 12 more than week 44.

    PersonHours
    Ines34
    Marco29
    Yuki23

    Most of the rise is Ines's Thursday on the roof survey.

Installation

pnpm add @heyramzi/ui

Usage

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

title required string
The conversation's name, shown in the bar and read out as the picture's label.
messages required ChatMessage[]
model string
Default "Opus 5.5"
The model picker in the composer.
placeholder string
Default "Reply to Claude…"
theme "light" | "dark" | "auto"
Default "auto"
reveal boolean
Default false
Plays the messages in once the window is on screen. Off, it is a still.
active boolean
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.
hold number
Default 4000
frame boolean
Default true
Draws macOS's traffic lights, as the desktop app.
labels Partial<ClaudeLabels>
Default {}
class string
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 ""