Chat

A full chat surface — conversation, streamed messages, reasoning, tools, sources, suggestions and composer — assembled from the AI primitives. Type a message or tap a suggestion to watch the mocked stream: reasoning opens, a tool call resolves, the answer streams in token-by-token, and sources appear beneath it.

$bunx shadcn@latest add @nx-ui/ai-chat
Registry item
Installs withai-conversationai-loaderai-messageai-prompt-inputai-reasoningai-sourcesai-toolai-typesbuttonutils

Live chat

Everything below runs on canned data with no backend. Send a prompt to replay the streamed response.

What's the best way to handle timber offcuts on site?

Based on the site records, here's the short version:

  • Timber offcuts shred well and add carbon to a compost mix.
  • Keep the carbon-to-nitrogen ratio near 30:1 by balancing with green waste.
  • Turn the windrow weekly and watch the core temperature.

Would you like the full handling procedure for a specific site?

API reference

Exported parts and their props, extracted from the component source.

PropTypeDefaultDescription
classNamestring
initialTurnsChatTurn[]INITIAL