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 పేజీలో జాబితా చేయబడ్డాయి.
ఆధారపడేవి
ఈ ఐటమ్ను ఇన్స్టాల్ చేస్తే కింది వాటిని కూడా జోడిస్తుంది.