Chat Message
A chat message component with support for loading state and text formatting
Preview
Basic Message
Hello, how can I help you?
Conversation
Hello!
Hi! waves How can I help?
Can you help me with something?
Typing
Installation
Usage
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | - | The message text to display |
error | boolean | false | Shows a "Failed" error state |
renderText | (text: string) => React.ReactNode | - | Custom render function for the message text |
className | string | '' | Additional CSS classes for styling |
...props | React.HTMLAttributes<HTMLDivElement> | - | All standard div attributes |