Passer au contenu
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.

L'aperçu utilise des données d'exemple. Il n'a besoin ni de réseau ni de canal.

Installation

Exécutez ceci dans un projet shadcn. Les fichiers sont copiés dans votre propre code.

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

Utilisation

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

Libellés

Les libellés sont listés sur Yuva help.

Dépendances

L'installation de cet élément ajoute aussi ce qui suit.

Composants de shadcn/ui

Autres éléments Yuva

Paquets npm