ପ୍ରିଭ୍ୟୁ ନମୁନା ଡାଟାରେ ଚାଲେ। ଏହାକୁ ନେଟୱାର୍କ କିମ୍ବା ଚ୍ୟାନେଲ ଦରକାର ନାହିଁ।
tsx
import { YuvaChatComposer } from "@/components/yuva-chat-composer"
import { useYuvaChat } from "@/hooks/use-yuva-chat"
export function Composer() {
const chat = useYuvaChat({
server={process.env.NEXT_PUBLIC_YUVA_SERVER}
channel={process.env.NEXT_PUBLIC_YUVA_CHANNEL},
})
return <YuvaChatComposer chat={chat} />
}ଇନଷ୍ଟଲେସନ୍
ଏହାକୁ ଏକ shadcn ପ୍ରକଳ୍ପରେ ଚଲାନ୍ତୁ। ଫାଇଲଗୁଡ଼ିକ ଆପଣଙ୍କ ନିଜ କୋଡ୍କୁ କପି ହୁଏ।
Shell
npx shadcn@latest add https://useyuva.com/r/yuva-chat-composer.jsonShell
pnpm dlx shadcn@latest add https://useyuva.com/r/yuva-chat-composer.jsonShell
yarn dlx shadcn@latest add https://useyuva.com/r/yuva-chat-composer.jsonShell
bunx --bun shadcn@latest add https://useyuva.com/r/yuva-chat-composer.jsonବ୍ୟବହାର
tsx
import { YuvaChatComposer } from "@/components/yuva-chat-composer"
<YuvaChatComposer chat={chat} />Props
YuvaChatComposerProps
| Prop | ପ୍ରକାର |
|---|---|
chat | YuvaChatState |
labels? | Partial<YuvaChatLabels> |
locale? | string |
disabled? | boolean |
onCapture? | () => File | null | undefined | Promise<File | null | undefined> |
className? | string |
ଲେବଲ୍
ଲେବଲ୍ ଗୁଡ଼ିକ Yuva chat ପୃଷ୍ଠାରେ ତାଲିକାଭୁକ୍ତ।
ନିର୍ଭରଶୀଳତା
ଏହି ଆଇଟମ୍ ଇନଷ୍ଟଲ୍ କଲେ ତଳେଥିବା ଗୁଡ଼ିକ ମଧ୍ୟ ଯୋଡ଼ା ହୁଏ।