Gå til indhold
Yuva discussion threadMenu

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.

Forhåndsvisningen kører på eksempeldata. Den kræver hverken netværk eller kanal.

Installation

Kør dette i et shadcn-projekt. Filerne kopieres ind i din egen kode.

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

Brug

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

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

Props

YuvaDiscussionThreadProps

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

Etiketter

Etiketterne er listet på Yuva discussions.

Afhængigheder

Når du installerer dette element, tilføjes også følgende.

Komponenter fra shadcn/ui

Andre Yuva-elementer

npm-pakker