Chuyển đến nội dung
Yuva idea suggest formMenu

Yuva idea suggest form

A form to suggest an idea to the roadmap, with similar ideas shown while the title is typed and the reader sign-in prompt.

Suggest an idea

Sign in to start a discussion, reply and vote.

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-idea-suggest.json

Cách dùng

tsx
import { YuvaIdeaSuggest } from "@/components/yuva-idea-suggest"

<YuvaIdeaSuggest onSuggested={(idea) => setIdea(idea.id)} />

Props

YuvaIdeaSuggestProps

PropKiểu
labels?Partial<YuvaRoadmapLabels>
discussionLabels?Partial<YuvaDiscussionsLabels>
className?string
onSuggested?(idea: Discussion) => void
onSelect?(idea: Discussion) => void
onCancel?() => void

Nhãn

Các nhãn được liệt kê ở Yuva 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