સામગ્રી પર જાઓ
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 પૅકેજ