Hoppa till innehållet
Yuva discussion threadMeny

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.

Förhandsvisningen använder exempeldata. Den behöver varken nätverk eller kanal.

Installation

Kör detta i ett shadcn-projekt. Filerna kopieras in i din egen kod.

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

Användning

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

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

Props

YuvaDiscussionThreadProps

PropTyp
idstring
labels?Partial<YuvaDiscussionsLabels>
className?string
onBack?() => void
onGone?() => void
badges?(discussion: Discussion) => React.ReactNode
votingClosed?(discussion: Discussion) => boolean

Etiketter

Etiketterna finns listade på Yuva discussions.

Beroenden

När du installerar det här elementet läggs även följande till.

Komponenter från shadcn/ui

Andra Yuva-element

npm-paket