Get started with chatui-core CDN
MIT licensed
ChatUI-core is a modular chat component library for building conversational interfaces.
Tags:- react
- react-component
- chat
- chat-ui
Stable version
Copied!
How to start using chatui-core CDN
// Import the ChatUI library
const ChatUI = require('chatui-core/dist/index.js');
// Create a new ChatUI instance
const chat = new ChatUI({
el: '#chat-container', // The container element ID
user: { name: 'You' }, // User name
avatar: 'url-to-your-avatar', // User avatar URL
greeting: 'Hello! I am your AI assistant.', // Greeting message
messages: [], // Initial messages array
onMessageSend: (message) => {
// Handle message sending event
console.log('Message sent:', message);
},
});
// Start the chat
chat.start();
Copied!
Copied!
Copied!
Copied!
All versions
0.1.0
0.1.1
0.1.2
0.1.3
0.1.4
0.1.5
0.2.0
0.2.1
0.2.2
0.2.2-beta.0
0.3.0
0.3.0-beta.0
0.3.0-beta.1
0.3.0-beta.2
0.3.0-beta.3
0.3.0-beta.4
0.3.0-beta.5
0.3.1
0.3.1-beta.0
0.3.1-beta.1
0.3.1-beta.2
0.3.2
0.3.3
1.0.0
1.0.0-alpha.0
1.0.0-alpha.1
1.0.0-alpha.2
1.0.0-beta.0
1.0.0-beta.1
1.0.0-beta.2
1.0.0-beta.3
1.0.0-beta.4
1.0.0-beta.5
1.0.0-beta.6
1.0.0-beta.7
1.0.1
1.0.2
1.1.0
1.1.1
1.1.2
1.1.3
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.3.0
1.4.0
1.4.1
2.0.0
2.0.0-alpha.0
2.0.0-alpha.1
2.0.0-alpha.2
2.0.0-alpha.3
2.0.0-alpha.4
2.0.0-alpha.5
2.0.0-alpha.6
2.0.0-alpha.7
2.0.0-beta.0
2.0.0-beta.1
2.0.0-beta.2
2.1.0
2.1.1
2.1.2
2.1.3
2.2.0
2.2.1
2.2.2
2.3.0
2.3.1
*** 2.4.2
2.4.8-beta.0
2.4.8-beta.1
2.4.8-beta.2
2.4.8-beta.3
2.4.8-beta.4
2.4.8-beta.5
2.4.8-beta.6
2.5.5-beta.0
3.0.0-beta.0