Gå til indhold
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.

Forhåndsvisningen kører på eksempeldata. Den kræver hverken netværk eller kanal.

Installation

Kør dette i et shadcn-projekt. Filerne kopieres ind i din egen kode.

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

Brug

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

Etiketterne er listet på Yuva help.

Afhængigheder

Når du installerer dette element, tilføjes også følgende.

Komponenter fra shadcn/ui

Andre Yuva-elementer

npm-pakker