Reference
Types
The shared data shapes every component speaks.
Usage
import type {
AvatarInfo, Reaction, ReactionKind,
ImageAttachment, Attachment, IMessageVariant,
} from "imessage-ui";API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| AvatarInfo | { initial: string; gradient: [string, string]; photoUrl?: string } | — | Avatar spec — gradient chip with an initial, or a photo. |
| ReactionKind | "heart" | "like" | "dislike" | — | The supported tapbacks. |
| Reaction | { kind: ReactionKind; by?: string; ts?: number } | — | One person's tapback on a message. |
| ImageAttachment | { kind: "image"; src: string; alt: string; width: number; height: number } | — | Image attachment with intrinsic dimensions. |
| Attachment | ImageAttachment | — | Union of attachment kinds (images today). |
| IMessageVariant | "default" | "glass" | — | The visual variant provided by Screen/Thread. |
| …Props | ChatBubbleProps, InputBarProps, … | — | Every component's props interface is exported for wrapping and re-export. |