类型 MessageData
API 文档由 Go 源码生成,内容为英文。
type MessageData struct {
Header string
Footer string
Initials string
Alignment MessageAlignment
ShowAvatar bool
// ReserveAvatar keeps the avatar column without painting an avatar, the
// official empty MessageAvatar: consecutive messages of one sender line up
// with the one that shows the avatar. ShowAvatar takes precedence.
ReserveAvatar bool
// GhostContent says the content slot holds a ghost bubble, which has no
// surface of its own, so the header and footer lose their 12px inset.
GhostContent bool
}MessageData contains visible message metadata. Bubble content remains a separate component, matching the official Message/MessageContent split.