కంటెంట్‌కు వెళ్ళు
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 ప్యాకేజీలు