Skip to content
Browse docs and components

Feature Voting

feature-voting

A list of feature requests to upvote, with a status for each. Votes land at once and roll the count; the list sorts by votes when it mounts and never under the pointer.

Responsive

Install

$npxshadcnadd@forme/feature-voting

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

FeatureVoting

A list of feature requests to upvote.

PropTypeDefaultDescription
features*readonly FeatureRequest[]—
defaultVotedreadonly string[][]Ids the person has already voted for, from an earlier visit.
onVoteChange(id: string, voted: boolean) => void—Called on every vote and every vote taken back.
sortByVotesbooleanfalseOrder by votes, most first. Taken once, when the list mounts.
disabledbooleanfalseStop voting, e.g. for someone not signed in. The counts still show.
classNamestring—