ప్రివ్యూ నమూనా డేటాతో నడుస్తుంది. దీనికి నెట్వర్క్ లేదా ఛానెల్ అవసరం లేదు.
tsx
import { YuvaDiscussionsProvider } from "@/hooks/use-yuva-discussions"
import { YuvaIdea } from "@/components/yuva-idea"
export function Idea({ id }: { id: string }) {
return (
<YuvaDiscussionsProvider
server={process.env.NEXT_PUBLIC_YUVA_SERVER}
channel={process.env.NEXT_PUBLIC_YUVA_CHANNEL}
>
<YuvaIdea id={id} />
</YuvaDiscussionsProvider>
)
}ఇన్స్టాలేషన్
దీన్ని shadcn ప్రాజెక్ట్లో నడపండి. ఫైళ్లు మీ సొంత కోడ్లోకి కాపీ అవుతాయి.
Shell
npx shadcn@latest add https://useyuva.com/r/yuva-idea.jsonShell
pnpm dlx shadcn@latest add https://useyuva.com/r/yuva-idea.jsonShell
yarn dlx shadcn@latest add https://useyuva.com/r/yuva-idea.jsonShell
bunx --bun shadcn@latest add https://useyuva.com/r/yuva-idea.jsonవినియోగం
tsx
import { YuvaIdea } from "@/components/yuva-idea"
<YuvaIdea id={ideaId} onBack={() => setIdea(null)} />Props
YuvaIdeaProps
| Prop | రకం |
|---|---|
id | string |
labels? | Partial<YuvaRoadmapLabels> |
discussionLabels? | Partial<YuvaDiscussionsLabels> |
className? | string |
onBack? | () => void |
onGone? | () => void |
లేబుల్స్
లేబుల్స్ Yuva roadmap పేజీలో జాబితా చేయబడ్డాయి.
ఆధారపడేవి
ఈ ఐటమ్ను ఇన్స్టాల్ చేస్తే కింది వాటిని కూడా జోడిస్తుంది.