انتقل إلى المحتوى
Yuva discussion threadالقائمة

Yuva discussion thread

One discussion: the opening post, the accepted answer, replies one level deep, votes, follow, accept, edit and delete, and the reply composer.

تعمل المعاينة ببيانات تجريبية. لا تحتاج إلى شبكة ولا إلى قناة.

التثبيت

شغّل هذا في مشروع shadcn. تُنسخ الملفات إلى شيفرتك.

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

الاستخدام

tsx
import { YuvaDiscussionThread } from "@/components/yuva-discussion-thread"

<YuvaDiscussionThread id={id} onBack={() => setId(null)} />

Props

YuvaDiscussionThreadProps

Propالنوع
idstring
labels?Partial<YuvaDiscussionsLabels>
className?string
onBack?() => void
onGone?() => void
badges?(discussion: Discussion) => React.ReactNode
votingClosed?(discussion: Discussion) => boolean

التسميات

التسميات مدرجة في صفحة Yuva discussions.

الاعتماديات

يضيف تثبيت هذا العنصر أيضًا ما يلي.

مكوّنات من shadcn/ui

عناصر Yuva الأخرى

حزم npm