iMessage UIv0.1.0

Reference

Types

The shared data shapes every component speaks.

Usage

import type {
  AvatarInfo, Reaction, ReactionKind,
  ImageAttachment, Attachment, IMessageVariant,
} from "imessage-ui";

API reference

PropTypeDefaultDescription
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.
AttachmentImageAttachmentUnion of attachment kinds (images today).
IMessageVariant"default" | "glass"The visual variant provided by Screen/Thread.
…PropsChatBubbleProps, InputBarProps, …Every component's props interface is exported for wrapping and re-export.