Przejdź do treści
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.

Podgląd działa na danych przykładowych. Nie potrzebuje sieci ani kanału.

Instalacja

Uruchom to w projekcie shadcn. Pliki zostaną skopiowane do twojego kodu.

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

Użycie

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

Etykiety

Etykiety są wymienione na stronie Yuva discussions.

Zależności

Instalacja tego elementu dodaje też poniższe.

Komponenty shadcn/ui

Inne elementy Yuva

Pakiety npm