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

Yuva help search

A search field over the help center with live results: the matched words highlighted in the title and excerpt, and the click counted for the report.

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

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

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

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

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

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

<YuvaHelpSearch server={server} channel={channel} onSelect={(article) => setId(article.id)} />

Props

YuvaHelpSearchProps

PropТип
server?string
channel?string
client?YuvaClient
identityToken?IdentityTokenSource | null
locale?string
help?YuvaHelpState
query?string
onQueryChange?(query: string) => void
onSelect?(article: ClientHelpArticleSummary, query: string) => void
labels?Partial<YuvaHelpLabels>
className?string

Підписи

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

Залежності

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

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

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

Пакети npm