Μετάβαση στο περιεχόμενο
Yuva help searchΜενού

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.

Η προεπισκόπηση τρέχει με δεδομένα δείγματος. Δεν χρειάζεται δίκτυο ούτε κανάλι.

Εγκατάσταση

Εκτελέστε το σε ένα έργο shadcn. Τα αρχεία αντιγράφονται στον δικό σας κώδικα.

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

Χρήση

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

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

Props

YuvaHelpSearchProps

PropΤύπος
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

Ετικέτες

Οι ετικέτες αναφέρονται στη σελίδα Yuva help.

Εξαρτήσεις

Η εγκατάσταση αυτού του στοιχείου προσθέτει επίσης τα παρακάτω.

Στοιχεία του shadcn/ui

Άλλα στοιχεία Yuva

Πακέτα npm