0.1.0 • Published 3 years ago

tui-chat-components v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

tui-chat-components

Simple chat components for the tui

Install

npm i tui-chat-components

Example

const { Chat } = require('tui-chat-components');

const chat = new Chat('MyUserName');

chat.addMessage('UserA', 'first message!');

chat.addPrompt(({ user, message }) => {
  // Send data to server
});

chat.addFooter(`\tESC - Command Mode\t\tDown Arrow - Insert Mode`);

chat.render();

Documentation for the Chat is accessible here

Documentation for the Form is accessible here

0.1.0

3 years ago

0.0.5

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago