Gå til innholdet
Yuva help searchMeny

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.

Forhåndsvisningen bruker eksempeldata. Den trenger verken nettverk eller kanal.

Installasjon

Kjør dette i et shadcn-prosjekt. Filene kopieres inn i din egen kode.

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

Bruk

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

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

Props

YuvaHelpSearchProps

PropType
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

Etiketter

Etikettene er listet opp på Yuva help.

Avhengigheter

Når du installerer dette elementet, legges også følgende til.

Komponenter fra shadcn/ui

Andre Yuva-elementer

npm-pakker