Preskoči na sadržaj
Yuva help searchIzbornik

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.

Pregled radi s primjerom podataka. Ne treba mu mreža ni kanal.

Instalacija

Pokrenite ovo u shadcn projektu. Datoteke se kopiraju u vaš vlastiti kôd.

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

Upotreba

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 su navedene na stranici Yuva help.

Ovisnosti

Instalacijom ovog elementa dodaje se i sljedeće.

Komponente iz shadcn/ui

Ostali Yuva elementi

npm paketi