Chuyển đến nội dung
Yuva help articleMenu

Yuva help article

One help article with its sanitized body, a Was this helpful? Yes and No rating, related articles and a Message us button that hands the article id to your chat.

Bản xem trước chạy trên dữ liệu mẫu. Không cần mạng hay kênh.

Cài đặt

Chạy lệnh này trong một dự án shadcn. Các tệp được sao chép vào mã của bạn.

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

Cách dùng

tsx
import { YuvaHelpArticle } from "@/components/yuva-help-article"

<YuvaHelpArticle server={server} channel={channel} id={articleId} onAsk={(id) => chat.open(id)} />

Props

YuvaHelpArticleProps

PropKiểu
idstring
server?string
channel?string
client?YuvaClient
identityToken?IdentityTokenSource | null
locale?string
help?YuvaHelpState
search?string
onSelect?(article: ClientHelpArticleSummary) => void
onAsk?(articleId: string) => void
labels?Partial<YuvaHelpLabels>
className?string

Nhãn

Các nhãn được liệt kê ở Yuva help.

Phụ thuộc

Cài mục này cũng sẽ thêm các mục sau.

Thành phần của shadcn/ui

Các mục Yuva khác

Gói npm