Components
Chat Bubble
Chat bubbles are ideal for organizing conversations in messaging apps, chats, social media platforms, and similar spaces.
Basic example
Chat receiver and chat sender
Assign the `chat-receiver` class to the receiver’s chat bubble and the `chat-sender` class to the sender’s chat bubble.
Illustration
Chat with avatar
Apply the `chat-avatar` class to show the avatar of either the sender or the receiver.
Chat with header
Apply the `chat-header` class to incorporate a header into the chat bubble.
Chat with footer
Apply the `chat-footer` class to incorporate a footer into the chat bubble.
Chat with avatar, header and footer
Here's an example of a chat bubble that includes an avatar, header, and footer.
Chat with image
This is an example of a chat bubble featuring an image.
Chat with image gallery
The following example demonstrates a chat bubble containing multiple images sent or received.
Chat with file attachment
Here's an example of a chat bubble with a file attachment.
documentation.pdf
12 Pages 18 MB PDF
Class referenceThe component, style, color, state, size and modifier classes available for this component.
| Class | Type | Description |
|---|---|---|
chat | component | The class for the chat container which contains the chat bubbles. |
chat-bubble | part | For the content of chat. |
chat-avatar | part | For display avatar of the sender or receiver. |
chat-header | part | For the header of the chat bubble. |
chat-footer | part | For the footer of the chat bubble. |
chat-receiver | modifier | For the chat bubble of the receiver. |
chat-sender | modifier | For the chat bubble of the sender. |