Saltar al contenido
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 previa usa datos de ejemplo. No necesita red ni canal.

Instalación

Ejecuta esto en un proyecto de shadcn. Los archivos se copian a tu propio código.

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

Uso

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

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

Props

YuvaHelpArticleProps

PropTipo
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

Etiquetas

Las etiquetas se enumeran en Yuva help.

Dependencias

Instalar este elemento también añade lo siguiente.

Componentes de shadcn/ui

Otros elementos de Yuva

Paquetes de npm