Skip to main content
The MessageText component is responsible for rendering the text content of chat messages. It wraps the Markdown component and provides proper whitespace handling with pre-wrap styling for natural text flow.

Installation

Install the MessageText component using the shadcn CLI:

Usage

Props

string
required
The message text content to render. Supports markdown formatting.