Use the following composition to build a chat:
This component takes inspiration from jakobhoeg/shadcn-chat.
The root container for chat messages.
| Prop | Type | Default |
|---|---|---|
ref? $bindable | HTMLDivElement | null |
children? | Snippet | - |
A chat bubble.
The message content within a chat bubble.
| Prop | Type | Default |
|---|---|---|
ref? $bindable | HTMLDivElement | null |
children? | Snippet | - |
typing? | boolean | false |
The avatar shown next to a chat bubble, inherits all Avatar.Root props.
Avatar image inside `BubbleAvatar` (re-export of `Avatar.Image`).
Avatar fallback inside `BubbleAvatar` (re-export of `Avatar.Fallback`).