AI Components
Message
A message from the user or the assistant, with Markdown replies and actions.
Installation
import { ... } from 'nooxit-design-system/components/ai/message';Branches
When a reply has been regenerated, MessageBranch keeps every version and
pages through them.
Notes
Built on Message and
Bubble. from sets the side and the bubble: a user
message is a muted bubble on the right, and an assistant reply is
a ghost bubble, plain text on the left. Pass variant to MessageContent to
use another bubble.
MessageResponse renders Markdown with Streamdown. It
handles half-finished Markdown while a reply streams, and highlights code
blocks. MessageAction is a ghost icon Button with
an optional tooltip.
Adapted from AI Elements' Message.
Source — src/components/ai/message.tsx