Zum Inhalt springen
Yuva discussion threadMenü

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.

Die Vorschau läuft mit Beispieldaten. Sie braucht weder Netzwerk noch Kanal.

Installation

Führen Sie das in einem shadcn-Projekt aus. Die Dateien werden in Ihren eigenen Code kopiert.

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

Verwendung

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

Beschriftungen

Die Beschriftungen stehen auf der Seite Yuva discussions.

Abhängigkeiten

Die Installation dieses Elements fügt auch Folgendes hinzu.

Komponenten von shadcn/ui

Weitere Yuva-Elemente

npm-Pakete