ବିଷୟବସ୍ତୁକୁ ଯାଆନ୍ତୁ
Yuva roadmap hooksମେନୁ

Yuva roadmap hooks

React hooks over the useyuva headless client for a public roadmap board: the board and its stage counts, the ideas of a stage by top votes or newest with a title search, voting and suggesting an idea. Built on the discussion hooks. Labels with English defaults.

Loading

  • Loading

ପ୍ରିଭ୍ୟୁ ନମୁନା ଡାଟାରେ ଚାଲେ। ଏହାକୁ ନେଟୱାର୍କ କିମ୍ବା ଚ୍ୟାନେଲ ଦରକାର ନାହିଁ।

ଇନଷ୍ଟଲେସନ୍

ଏହାକୁ ଏକ shadcn ପ୍ରକଳ୍ପରେ ଚଲାନ୍ତୁ। ଫାଇଲଗୁଡ଼ିକ ଆପଣଙ୍କ ନିଜ କୋଡ୍‌କୁ କପି ହୁଏ।

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

ବ୍ୟବହାର

tsx
import { useIdeas, useRoadmap } from "@/hooks/use-yuva-roadmap"

const { board } = useRoadmap()
const { ideas, vote } = useIdeas("planned", "top")

Props

RoadmapResult

Propପ୍ରକାର
boardClientRoadmap | null
loadingboolean
errorunknown
reload() => Promise<void>

IdeasResult

Propପ୍ରକାର
ideasDiscussion[]
loadingboolean
errorunknown
hasMoreboolean
loadMore() => Promise<void>
reload() => Promise<void>
suggest(input: IdeaInput) => Promise<Discussion>
vote(idea: Discussion) => Promise<void>

ଲେବଲ୍

ଲେବଲ୍ ଗୁଡ଼ିକ Yuva roadmap ପୃଷ୍ଠାରେ ତାଲିକାଭୁକ୍ତ।

ନିର୍ଭରଶୀଳତା

ଏହି ଆଇଟମ୍ ଇନଷ୍ଟଲ୍ କଲେ ତଳେଥିବା ଗୁଡ଼ିକ ମଧ୍ୟ ଯୋଡ଼ା ହୁଏ।

Yuva ର ଅନ୍ୟ ଆଇଟମ୍

npm ପ୍ୟାକେଜ୍