Перейти до вмісту
Yuva help articleМеню

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.

Попередній перегляд працює на прикладах даних. Йому не потрібні ні мережа, ні канал.

Встановлення

Виконайте це в проєкті shadcn. Файли копіюються у ваш власний код.

Shell
npx 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Тип
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

Підписи

Підписи перелічено на сторінці «Yuva help».

Залежності

Встановлення цього елемента додає також наведене нижче.

Компоненти shadcn/ui

Інші елементи Yuva

Пакети npm