ChatThread
display
ChatThread component
Terminal
$termuijs render chat-thread
Installation
$ bunx termuijs add chat-thread
Copies the source into src/components/chat-thread/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { ChatThread } from '@termuijs/widgets'ts
new ChatThread(style: Partial<Style> = {}, messages: ThreadMessage[] = [],)API Reference
ChatThread
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | required | Content to render |
style | Styles | {} | Ink style object |
width | number | string | — | Fixed width in columns |
height | number | — | Fixed height in rows |