ପ୍ରିଭ୍ୟୁ ନମୁନା ଡାଟାରେ ଚାଲେ। ଏହାକୁ ନେଟୱାର୍କ କିମ୍ବା ଚ୍ୟାନେଲ ଦରକାର ନାହିଁ।
tsx
import { YuvaHelpArticle } from "@/components/yuva-help-article"
export function Article({ id }: { id: string }) {
return (
<YuvaHelpArticle
server={process.env.NEXT_PUBLIC_YUVA_SERVER}
channel={process.env.NEXT_PUBLIC_YUVA_CHANNEL}
id={id}
onAsk={(articleId) => openChat(articleId)}
/>
)
}ଇନଷ୍ଟଲେସନ୍
ଏହାକୁ ଏକ shadcn ପ୍ରକଳ୍ପରେ ଚଲାନ୍ତୁ। ଫାଇଲଗୁଡ଼ିକ ଆପଣଙ୍କ ନିଜ କୋଡ୍କୁ କପି ହୁଏ।
Shell
npx shadcn@latest add https://useyuva.com/r/yuva-help-article.jsonShell
pnpm dlx shadcn@latest add https://useyuva.com/r/yuva-help-article.jsonShell
yarn dlx shadcn@latest add https://useyuva.com/r/yuva-help-article.jsonShell
bunx --bun shadcn@latest add https://useyuva.com/r/yuva-help-article.jsonବ୍ୟବହାର
tsx
import { YuvaHelpArticle } from "@/components/yuva-help-article"
<YuvaHelpArticle server={server} channel={channel} id={articleId} onAsk={(id) => chat.open(id)} />Props
YuvaHelpArticleProps
| Prop | ପ୍ରକାର |
|---|---|
id | string |
server? | string |
channel? | string |
client? | YuvaClient |
identityToken? | IdentityTokenSource | null |
locale? | string |
help? | YuvaHelpState |
search? | string |
onSelect? | (article: ClientHelpArticleSummary) => void |
onAsk? | (articleId: string) => void |
labels? | Partial<YuvaHelpLabels> |
className? | string |
ଲେବଲ୍
ଲେବଲ୍ ଗୁଡ଼ିକ Yuva help ପୃଷ୍ଠାରେ ତାଲିକାଭୁକ୍ତ।
ନିର୍ଭରଶୀଳତା
ଏହି ଆଇଟମ୍ ଇନଷ୍ଟଲ୍ କଲେ ତଳେଥିବା ଗୁଡ଼ିକ ମଧ୍ୟ ଯୋଡ଼ା ହୁଏ।