Say hello
Hi, ask us anything about Acme.
ପ୍ରିଭ୍ୟୁ ନମୁନା ଡାଟାରେ ଚାଲେ। ଏହାକୁ ନେଟୱାର୍କ କିମ୍ବା ଚ୍ୟାନେଲ ଦରକାର ନାହିଁ।
tsx
import { YuvaChatThread } from "@/components/yuva-chat-thread"
import { useYuvaChat } from "@/hooks/use-yuva-chat"
export function Thread({ id }: { id: string }) {
const chat = useYuvaChat({
server={process.env.NEXT_PUBLIC_YUVA_SERVER}
channel={process.env.NEXT_PUBLIC_YUVA_CHANNEL},
})
const { loading, open } = chat
React.useEffect(() => {
if (!loading) void open(id)
}, [loading, open, id])
return (
<div className="flex h-96 flex-col rounded-xl border">
<YuvaChatThread chat={chat} />
</div>
)
}ଇନଷ୍ଟଲେସନ୍
ଏହାକୁ ଏକ shadcn ପ୍ରକଳ୍ପରେ ଚଲାନ୍ତୁ। ଫାଇଲଗୁଡ଼ିକ ଆପଣଙ୍କ ନିଜ କୋଡ୍କୁ କପି ହୁଏ।
Shell
npx shadcn@latest add https://useyuva.com/r/yuva-chat-thread.jsonShell
pnpm dlx shadcn@latest add https://useyuva.com/r/yuva-chat-thread.jsonShell
yarn dlx shadcn@latest add https://useyuva.com/r/yuva-chat-thread.jsonShell
bunx --bun shadcn@latest add https://useyuva.com/r/yuva-chat-thread.jsonବ୍ୟବହାର
tsx
import { YuvaChatThread } from "@/components/yuva-chat-thread"
<YuvaChatThread chat={chat} />Props
YuvaChatThreadProps
| Prop | ପ୍ରକାର |
|---|---|
chat | YuvaChatState |
labels? | Partial<YuvaChatLabels> |
locale? | string |
greeting? | string |
lined? | boolean |
className? | string |
ଲେବଲ୍
ଲେବଲ୍ ଗୁଡ଼ିକ Yuva chat ପୃଷ୍ଠାରେ ତାଲିକାଭୁକ୍ତ।
ନିର୍ଭରଶୀଳତା
ଏହି ଆଇଟମ୍ ଇନଷ୍ଟଲ୍ କଲେ ତଳେଥିବା ଗୁଡ଼ିକ ମଧ୍ୟ ଯୋଡ଼ା ହୁଏ।