मजकुराकडे जा
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 पॅकेजेस