Gå til innholdet
Yuva help articleMeny

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.

Forhåndsvisningen bruker eksempeldata. Den trenger verken nettverk eller kanal.

Installasjon

Kjør dette i et shadcn-prosjekt. Filene kopieres inn i din egen kode.

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

Bruk

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

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

Props

YuvaHelpArticleProps

PropType
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

Etiketter

Etikettene er listet opp på Yuva help.

Avhengigheter

Når du installerer dette elementet, legges også følgende til.

Komponenter fra shadcn/ui

Andre Yuva-elementer

npm-pakker