Ir para o conteúdo
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.

A prévia usa dados de exemplo. Ela não precisa de rede nem de canal.

Instalação

Execute isto em um projeto shadcn. Os arquivos são copiados para o seu próprio 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

Rótulos

Os rótulos estão listados em Yuva help.

Dependências

Instalar este item também adiciona o seguinte.

Componentes do shadcn/ui

Outros itens do Yuva

Pacotes npm