Chuyển đến nội dung
Yuva roadmapMenu

Yuva roadmap

A public roadmap board: stage tabs with counts, ideas by top votes with vote buttons, the idea view with replies, and Suggest an idea with similar ideas.

Roadmap

Bản xem trước chạy trên dữ liệu mẫu. Không cần mạng hay kênh.

Cài đặt

Chạy lệnh này trong một dự án shadcn. Các tệp được sao chép vào mã của bạn.

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

Cách dùng

tsx
import { YuvaRoadmap } from "@/components/yuva-roadmap"

<YuvaRoadmap server={server} channel={channel} />

Props

YuvaRoadmapProps

PropKiểu
server?string
channel?string
identityToken?IdentityTokenSource | null
client?YuvaClient
defaultStage?YuvaRoadmapStage
labels?Partial<YuvaRoadmapLabels>
discussionLabels?Partial<YuvaDiscussionsLabels>
locale?string
className?string

YuvaRoadmapListProps

PropKiểu
stage?YuvaRoadmapStage
onStageChange?(stage: YuvaRoadmapStage) => void
onSelect(idea: Discussion) => void
onSuggest?() => void
labels?Partial<YuvaRoadmapLabels>
discussionLabels?Partial<YuvaDiscussionsLabels>
className?string

Nhãn

Mỗi nhãn có mặc định tiếng Anh. Truyền một đối tượng labels một phần để đổi hoặc dịch chúng.

NhãnMặc định
heading"Roadmap"
stageIdeas"Ideas"
stagePlanned"Planned"
stageInProgress"In progress"
stageShipped"Shipped"
stageClosed"Closed"
suggest"Suggest an idea"
suggestHeading"Suggest an idea"
suggestTitlePlaceholder"Your idea in a few words"
suggestBodyPlaceholder"Describe it. What do you need, and why? Markdown works."
sendIdea"Send idea"
similarIdeas"Similar ideas"
ideaSent"Thanks! Your idea is on the board."
ideaPending"Thanks! The team will review your idea before it is shown."
votingClosed"Voting is closed for this idea."
empty"Nothing here yet."
vote(title) => `Vote for ${title}`
removeVote(title) => `Remove your vote for ${title}`
votes(count) => (count === 1 ? "1 vote" : `${count} votes`)
back"Roadmap"

Phụ thuộc

Cài mục này cũng sẽ thêm các mục sau.

Thành phần của shadcn/ui

Các mục Yuva khác

Gói npm