Skip to content

ChatThread

widgetsdisplay

ChatThread component

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

PropTypeDefaultDescription
childrenReactNoderequiredContent to render
styleStyles{}Ink style object
widthnumber | stringFixed width in columns
heightnumberFixed height in rows
#display#chat-thread