İçeriğe geç
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.

Önizleme örnek verilerle çalışır. Ağa da kanala da ihtiyaç duymaz.

Kurulum

Bunu bir shadcn projesinde çalıştırın. Dosyalar kendi kodunuzun içine kopyalanır.

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

Kullanım

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

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

Prop'lar

YuvaDiscussionThreadProps

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

Etiketler

Etiketler Yuva discussions sayfasında listelenir.

Bağımlılıklar

Bu öğeyi kurmak aşağıdakileri de ekler.

shadcn/ui bileşenleri

Diğer Yuva öğeleri

npm paketleri