Skip to content

Commit 313e039

Browse files
committed
docs: Update README demo video
1 parent 4c6b733 commit 313e039

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
<div>Easy to use <a target="_blank" href="https://chatkitty.com/docs">Chat API</a> with scalable infrastructure</div>
2020
</div>
2121

22+
[![Watch the video: Getting started with Vue](demo/chatkitty/assets/chatkitty-vue-demo.png)](https://www.youtube.com/watch?v=XrHyC0aUOAU)
23+
2224
## Features
2325

2426
- Compatible with all Javascript frameworks (Vue, Angular, React, etc.) or no framework at all
@@ -863,6 +865,7 @@ import {ChatUi} from '@chatkitty/vue'
863865
<template>
864866
<div style="width: 100vw; height: 100svh">
865867
<!-- Replace widgetId with your widget ID from console.chatkitty.com -->
868+
<!-- Set username to the current user's username -->
866869
<!-- Remove mode="sandbox" in production environment -->
867870
<ChatUi
868871
widgetId="5IKgX7UHsLr1cWJ5"
538 KB
Loading

demo/chatkitty/src/App.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
<script setup>
22
import {ChatUi} from '@chatkitty/vue'
3+
import { ref } from 'vue'
4+
5+
const username = ref('demo_user') // Set to the current user's username
36
</script>
47

58
<template>
6-
<div style="width: 100vw; height: 100svh">
9+
<div style="width: 100vw; height: 95svh">
710
<!-- Replace widgetId with your widget ID from console.chatkitty.com -->
811
<!-- Remove mode="sandbox" in production environment -->
912
<ChatUi
1013
widgetId="5IKgX7UHsLr1cWJ5"
11-
username=username
12-
mode="sandbox"/>
14+
mode="sandbox"
15+
:username="username"
16+
/>
1317
</div>
1418
</template>

0 commit comments

Comments
 (0)