முன்னோட்டம் மாதிரித் தரவில் இயங்குகிறது. நெட்வொர்க்கோ சேனலோ தேவையில்லை.
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 பக்கத்தில் பட்டியலிடப்பட்டுள்ளன.
சார்புகள்
இந்த உருப்படியை நிறுவினால் கீழுள்ளவையும் சேர்க்கப்படும்.