Salta al contingut
Yuva help articleMenú

Yuva help article

One help article with its sanitized body, a Was this helpful? Yes and No rating, related articles and a Message us button that hands the article id to your chat.

La vista prèvia fa servir dades d'exemple. No necessita xarxa ni canal.

Instal·lació

Executa això en un projecte de shadcn. Els fitxers es copien al teu propi codi.

Shell
npx shadcn@latest add https://useyuva.com/r/yuva-help-article.json

Ús

tsx
import { YuvaHelpArticle } from "@/components/yuva-help-article"

<YuvaHelpArticle server={server} channel={channel} id={articleId} onAsk={(id) => chat.open(id)} />

Props

YuvaHelpArticleProps

PropTipus
idstring
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

Etiquetes

Les etiquetes figuren a Yuva help.

Dependències

Instal·lar aquest element també afegeix el següent.

Components de shadcn/ui

Altres elements de Yuva

Paquets npm