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

Yuva help

The help center in one block: search, the best matches for the page or the popular articles, collections, the article view with its rating and related articles, and a Message us row.

Still stuck?Ask the team, we read every message.

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

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

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

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

Використання

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

<YuvaHelp server={server} channel={channel} page="/billing" onAsk={() => chat.open()} />

Props

YuvaHelpProps

PropТип
server?string
channel?string
client?YuvaClient
identityToken?IdentityTokenSource | null
locale?string
page?string
articleId?string
onAsk?(articleId?: string) => void
labels?Partial<YuvaHelpLabels>
className?string

Підписи

Кожен підпис має типове англійське значення. Передайте частковий об'єкт labels, щоб змінити або перекласти їх.

ПідписТипово
heading"Help center"
searchLabel"Search for help"
searchPlaceholder"Search for help"
bestMatches"Best matches"
popular"Popular articles"
browse"Browse"
noResults"No articles found."
searching"Searching…"
helpfulQuestion"Was this helpful?"
yes"Yes"
no"No"
thanks"Thanks for your feedback"
related"Related articles"
back"Back"
stillStuck"Still stuck?"
askText"Ask the team, we read every message."
messageUs"Message us"
loadError"Could not load this."
retry"Try again"
loading"Loading…"
articles(count) => `${count} ${count === 1 ? "article" : "articles"}`

Залежності

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

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

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

Пакети npm