Saltar al contenido
Yuva help searchMenú

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.

La vista previa usa datos de ejemplo. No necesita red ni canal.

Instalación

Ejecuta esto en un proyecto de shadcn. Los archivos se copian a tu propio código.

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

Uso

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

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

Props

YuvaHelpSearchProps

PropTipo
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

Etiquetas

Las etiquetas se enumeran en Yuva help.

Dependencias

Instalar este elemento también añade lo siguiente.

Componentes de shadcn/ui

Otros elementos de Yuva

Paquetes de npm