The MessageItem component renders individual messages in a chat interface. It provides role-based styling (user vs assistant), markdown content rendering, and interactive copy functionality with smooth hover states.Documentation Index
Fetch the complete documentation index at: https://osmium.intface.io/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Install the MessageItem component using the shadcn CLI:Usage
Props
The message object to display. Uses the standard UI message format from AI SDK with parts array.
Additional CSS classes to apply to the message container.
Inline styles to apply to the message container.
Reference to the message container element.

