ਸਮੱਗਰੀ ਤੇ ਜਾਓ
Yuva discussion threadਮੀਨੂ

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.

ਪ੍ਰੀਵਿਊ ਨਮੂਨਾ ਡੇਟਾ ਉੱਤੇ ਚੱਲਦਾ ਹੈ। ਇਸ ਨੂੰ ਨੈੱਟਵਰਕ ਜਾਂ ਚੈਨਲ ਦੀ ਲੋੜ ਨਹੀਂ।

ਇੰਸਟਾਲੇਸ਼ਨ

ਇਸ ਨੂੰ ਇੱਕ shadcn ਪ੍ਰੋਜੈਕਟ ਵਿੱਚ ਚਲਾਓ। ਫ਼ਾਈਲਾਂ ਤੁਹਾਡੇ ਆਪਣੇ ਕੋਡ ਵਿੱਚ ਕਾਪੀ ਹੋ ਜਾਂਦੀਆਂ ਹਨ।

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

ਵਰਤੋਂ

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

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

Props

YuvaDiscussionThreadProps

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

ਲੇਬਲ

ਲੇਬਲ Yuva discussions ਪੰਨੇ ਉੱਤੇ ਸੂਚੀਬੱਧ ਹਨ।

ਨਿਰਭਰਤਾਵਾਂ

ਇਸ ਆਈਟਮ ਨੂੰ ਇੰਸਟਾਲ ਕਰਨ ਨਾਲ ਹੇਠਾਂ ਦਿੱਤੇ ਵੀ ਜੁੜ ਜਾਂਦੇ ਹਨ।

shadcn/ui ਦੇ ਕੰਪੋਨੈਂਟ

Yuva ਦੀਆਂ ਹੋਰ ਆਈਟਮਾਂ

npm ਪੈਕੇਜ