Message
import { Caret, Message } from '@hanzo/ui/chat'
No examples yet.
Types
export type Role = 'user' | 'assistant' | 'system' | 'tool'
export interface MessageProps extends Stack {role: Rolechildren?: ReactNode/** Row rendered under the turn — copy, retry, feedback. */actions?: ReactNode/** The turn is still streaming: a `Caret` closes the body. */busy?: boolean/** Leading affordance for an assistant turn: avatar or model mark. */icon?: ReactNode/** The bubble's own props — the inner box, not the row. Reaches the fill, the* corner and the width cap. Absent, nothing changes. */body?: Stack}
Exports
CaretMessagetype MessagePropstype Role