सामग्री पर जाएँ
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 पैकेज