דלג לתוכן
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