Chat
Chat bubbles and messaging UI components for building chat interfaces.
Import
import { Chat, ChatImage, ChatHeader, ChatBubble, ChatFooter } from '@sigx/daisyui';
Basic Chat
Loading preview...
Chat with Avatar
Loading preview...
Chat with Header and Footer
Loading preview...
Chat Bubble Colors
Loading preview...
Conversation Example
Loading preview...
Multiple Bubbles
Loading preview...
Image in Chat
Loading preview...
Props
Chat Props
| Prop | Type | Default | Description |
|---|---|---|---|
align | 'start' | 'end' | 'start' | Bubble alignment |
class | string | - | Additional CSS classes |
Chat Slots
| Slot | Description |
|---|---|
default | ChatImage, ChatHeader, ChatBubble, ChatFooter components |
ChatBubble Props
| Prop | Type | Default | Description |
|---|---|---|---|
color | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | - | Bubble color |
class | string | - | Additional CSS classes |
ChatImage Props
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | - | Image URL for avatar |
alt | string | 'Avatar' | Alt text for image avatar |
placeholder | string | - | Initials text; renders a colored circle instead of an image |
bgColor | string | 'primary' | Background color for placeholder circle (e.g. 'secondary', 'accent') |
class | string | - | Additional CSS classes |
ChatHeader/ChatFooter Props
| Prop | Type | Default | Description |
|---|---|---|---|
class | string | - | Additional CSS classes |