Feature Voting
feature-votingA 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.
import { FeatureVoting } from "@/components/forme/feature-voting/feature-voting";
export function FeatureVotingDemo() {
return (
<FeatureVoting
sortByVotes
className="w-full max-w-lg"
defaultVoted={["api"]}
features={[
{
id: "sso",
title: "SAML single sign-on",
description: "Sign in through Okta, Entra or Google Workspace.",
votes: 86,
status: { label: "Planned", variant: "brand" },
},
{
id: "api",
title: "A public API",
description: "Read and write every record over REST.",
votes: 142,
status: { label: "In progress", variant: "warning" },
},
{
id: "mobile",
title: "Mobile app",
votes: 57,
},
{
id: "themes",
title: "Custom themes",
description: "Bring your own accent and type.",
votes: 23,
status: { label: "Shipped", variant: "success" },
},
]}
/>
);
}Install
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.
| Prop | Type | Default | Description |
|---|---|---|---|
features* | readonly FeatureRequest[] | — | |
defaultVoted | readonly 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. |
sortByVotes | boolean | false | Order by votes, most first. Taken once, when the list mounts. |
disabled | boolean | false | Stop voting, e.g. for someone not signed in. The counts still show. |
className | string | — |
Related


Area Chart
A line or area chart in plain SVG with no chart library. A crosshair snaps to the nearest point and lists every series, arrow keys walk it, round tick values, a legend from two series up, and a hidden table so screen readers get the numbers.
data display

Avatar
A user image with a fallback that shows initials while the image loads, and when it never arrives at all. Built on the Base UI avatar primitive, so the image and the fallback swap without a flash of empty space.
data display

Badge
A small label for status, counts and metadata, in five quiet variants and two sizes. The colour lives in the tint so the text stays readable at eleven pixels, and an icon or a dot inside the badge carries the state at a glance.
data display