hiip/ui

Components / Chat

Message

The row around a bubble: avatar gutter, author line, status slot. Mirrors for outgoing messages.

Install — needs @hiip registered in components.json

bunx shadcn@latest add @hiip/message

Or by URL, with the token in the query

bunx shadcn@latest add "https://ui.hiip.ai/r/message.json?token=$HIIP_REGISTRY_TOKEN"

Both need a token — set one up.

Anatomy

Import from components/ui/hiip-ui/message.

<MessageGroup>
  <Message align="start">
    <MessageAvatar />
    <MessageContent>
      <MessageHeader />
      {/* one or more <Bubble> */}
      <MessageFooter />
    </MessageContent>
  </Message>
</MessageGroup>

Examples

MK
Mai Khanh18 days ago
Can I still join the campaign?
Mình cf nha
❤️
KN
Khoa Nguyễn18 days ago
You can — briefing is open until Friday.
Seen

API Reference

Generated from the source. Props forwarded to the underlying element are not listed.

MessageGroup

No props of its own.

Message

PropTypeDefault
align"start" | "end" | undefined"start"

MessageAvatar

No props of its own.

MessageContent

No props of its own.

MessageHeader

No props of its own.

MessageFooter

No props of its own.

Type
registry:ui
Files written
  • components/ui/hiip-ui/message.tsx