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