Message
Chat-style message bubbles with MS-DOS terminal aesthetics.
Import
Usage
The Message component displays chat-style messages with rectangular speech bubbles and triangular pointers.
Props
Message
| Prop | Type | Default | Description |
|---|---|---|---|
| children | React.ReactNode | - | Message content (required) |
| position | 'left' | 'right' | 'left' | Position of the message bubble |
| author | string | - | Author name displayed above the message |
| timestamp | string | - | Timestamp displayed below the message |
| className | string | - | Additional CSS class names |
MessageList
| Prop | Type | Default | Description |
|---|---|---|---|
| children | React.ReactNode | - | Message components to render |
| className | string | - | Additional CSS class names |