Preskoči na vsebino
Yuva discussion threadMeni

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.

Predogled uporablja vzorčne podatke. Ne potrebuje omrežja ne kanala.

Namestitev

To zaženite v projektu shadcn. Datoteke se skopirajo v vašo kodo.

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

Uporaba

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

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

Props

YuvaDiscussionThreadProps

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

Oznake

Oznake so navedene na strani Yuva discussions.

Odvisnosti

Z namestitvijo tega elementa se dodajo tudi naslednji.

Komponente shadcn/ui

Drugi elementi Yuva

Paketi npm