Ir para o conteúdo
Yuva help articleMenu

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.

A prévia usa dados de exemplo. Ela não precisa de rede nem de canal.

Instalação

Execute isto em um projeto shadcn. Os arquivos são copiados para o seu próprio 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

Rótulos

Os rótulos estão listados em Yuva help.

Dependências

Instalar este item também adiciona o seguinte.

Componentes do shadcn/ui

Outros itens do Yuva

Pacotes npm