Chat#

Chat bubbles and messaging UI components for building chat interfaces.

Import#

TSX
import { Chat, ChatImage, ChatHeader, ChatBubble, ChatFooter } from '@sigx/daisyui';

Basic Chat#

TSX
Loading preview...

Chat with Avatar#

TSX
Loading preview...
TSX
Loading preview...

Chat Bubble Colors#

TSX
Loading preview...

Conversation Example#

TSX
Loading preview...

Multiple Bubbles#

TSX
Loading preview...

Image in Chat#

TSX
Loading preview...

Props#

Chat Props#

PropTypeDefaultDescription
align'start' | 'end''start'Bubble alignment
classstring-Additional CSS classes

Chat Slots#

SlotDescription
defaultChatImage, ChatHeader, ChatBubble, ChatFooter components

ChatBubble Props#

PropTypeDefaultDescription
color'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error'-Bubble color
classstring-Additional CSS classes

ChatImage Props#

PropTypeDefaultDescription
srcstring-Image URL for avatar
altstring'Avatar'Alt text for image avatar
placeholderstring-Initials text; renders a colored circle instead of an image
bgColorstring'primary'Background color for placeholder circle (e.g. 'secondary', 'accent')
classstring-Additional CSS classes

ChatHeader/ChatFooter Props#

PropTypeDefaultDescription
classstring-Additional CSS classes