Lompat ke konten
Yuva help searchMenu

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.

Pratinjau berjalan dengan data contoh. Tidak butuh jaringan maupun kanal.

Instalasi

Jalankan ini di proyek shadcn. File disalin ke kode Anda sendiri.

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

Penggunaan

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

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

Props

YuvaHelpSearchProps

PropTipe
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

Label

Label tercantum di Yuva help.

Dependensi

Menginstal item ini juga menambahkan yang berikut.

Komponen dari shadcn/ui

Item Yuva lainnya

Paket npm