Gå til innholdet
Yuva discussion threadMeny

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 bruker eksempeldata. Den trenger verken nettverk eller kanal.

Installasjon

Kjør dette i et shadcn-prosjekt. Filene kopieres inn i din egen kode.

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

Bruk

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

Etikettene er listet opp på Yuva discussions.

Avhengigheter

Når du installerer dette elementet, legges også følgende til.

Komponenter fra shadcn/ui

Andre Yuva-elementer

npm-pakker