No conversations yet
Start one and we will answer here.
প্রিভিউ নমুনা ডেটায় চলে। এর জন্য নেটওয়ার্কও লাগে না, চ্যানেলও লাগে না।
tsx
import { YuvaChatConversations } from "@/components/yuva-chat-conversations"
import { useYuvaChat } from "@/hooks/use-yuva-chat"
export function Conversations() {
const chat = useYuvaChat({
server={process.env.NEXT_PUBLIC_YUVA_SERVER}
channel={process.env.NEXT_PUBLIC_YUVA_CHANNEL},
})
return <YuvaChatConversations chat={chat} />
}ইনস্টলেশন
এটি একটি shadcn প্রকল্পে চালান। ফাইলগুলো আপনার নিজের কোডে কপি হয়।
Shell
npx shadcn@latest add https://useyuva.com/r/yuva-chat-conversations.jsonShell
pnpm dlx shadcn@latest add https://useyuva.com/r/yuva-chat-conversations.jsonShell
yarn dlx shadcn@latest add https://useyuva.com/r/yuva-chat-conversations.jsonShell
bunx --bun shadcn@latest add https://useyuva.com/r/yuva-chat-conversations.jsonব্যবহার
tsx
import { YuvaChatConversations } from "@/components/yuva-chat-conversations"
<YuvaChatConversations chat={chat} onOpen={(id) => setView("thread")} />Props
YuvaChatConversationsProps
| Prop | ধরন |
|---|---|
chat | YuvaChatState |
labels? | Partial<YuvaChatLabels> |
locale? | string |
onOpen? | (id: string | null) => void |
className? | string |
লেবেল
লেবেলগুলো Yuva chat পাতায় তালিকাভুক্ত আছে।
নির্ভরতা
এই আইটেম ইনস্টল করলে নিচেরগুলোও যোগ হয়।