Preskoči na vsebino
Yuva help searchMeni

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.

Predogled uporablja vzorčne podatke. Ne potrebuje omrežja ne kanala.

Namestitev

To zaženite v projektu shadcn. Datoteke se skopirajo v vašo kodo.

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

Uporaba

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

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

Props

YuvaHelpSearchProps

PropVrsta
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

Oznake

Oznake so navedene na strani Yuva help.

Odvisnosti

Z namestitvijo tega elementa se dodajo tudi naslednji.

Komponente shadcn/ui

Drugi elementi Yuva

Paketi npm