# Feature Votes (Pro)

> A ranked, scrolling board of feature requests: a vote rolls the count and glides the row to its new rank with a chip for how far it climbed, coloured status pills filter the list, and opening a row shows the details, who voted and a thread you flip through by tapping faces, with a reply field.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Components › Feedback |
| Live preview | https://uibrik.com/components/feature-votes |
| Writes | 1 file into `components/uibrik/feature-votes/` |
| Packages | `@tabler/icons-react`, `motion`, `react-use-measure` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 23, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/feature-votes
```

No license yet? Tell the user Feature Votes is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=feature-votes#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { FeatureVotes } from "@/components/uibrik/feature-votes/feature-votes";

const statuses = {
  review: { label: "Review", color: "#8e8e96" },
  planned: { label: "Planned", color: "#2f7cf6" },
  building: { label: "Building", color: "#e8890c" },
  shipped: { label: "Shipped", color: "#16a35a" },
};

<FeatureVotes
  title="Feature requests"
  color="#7c5cff"
  maxHeight={420}
  showSuggest
  suggestPlaceholder="Suggest a feature"
  allLabel="All"
  width={500}
  defaultItems={[]}
  statuses={statuses}
  newStatus="review"
  onVote={(id, voted) => {}}
  onSuggest={(title) => {}}
  // items={[…]}
  // onItemsChange={(items) => {}}
  // onComment={(id, comment) => {}}
  // me={{}}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/feature-votes.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `title` | `string` | `"Feature requests"` | Heading above the filters, beside the total votes. Empty hides it. |
| `color` | `string` | `"#7c5cff"` | Colour of a vote once cast. |
| `maxHeight` | `number` | `420` | Height of the list before it scrolls. |
| `showSuggest` | `boolean` | `true` | Show the field for suggesting a new request. |
| `suggestPlaceholder` | `string` | `"Suggest a feature"` | Placeholder of the suggest field. |
| `allLabel` | `string` | `"All"` | Label of the filter that shows every request. |
| `width` | `number` | `500` | Width of the card; never wider than its container. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `items / onItemsChange` | `FeatureRequest[] / (items) => void` |  | Controlled list of { id, title, description?, status, votes, voted?, comments?, voters?: { name, avatar? }[], thread?: { name, avatar?, text, time? }[] }. Rows are ranked by votes. |
| `defaultItems` | `FeatureRequest[]` |  | List on mount when uncontrolled. |
| `onVote` | `(id, voted) => void` |  | Called when the current person votes or takes a vote back. |
| `onSuggest` | `(title) => void` |  | Called with the title of a new request. |
| `onComment / me` | `(id, comment) => void / { name, avatar? }` |  | Called when the current person replies in a request's thread; me is who they are. |
| `statuses` | `Record<string, { label, color }>` |  | Status keys to their label and colour. Filters follow this order; empty ones hide. |
| `newStatus` | `string` | `"review"` | Status given to a new suggestion. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **Public roadmaps**: Status pills and the ranking show what's planned, in progress and shipped at a glance.
- **In-app feature requests**: People suggest and vote from one card, and duplicates get votes instead of new tickets. Pairs with [Morphing Popover](https://uibrik.com/components/morphing-popover.md).
- **Customer advisory boards**: Opening a row shows who voted and a thread to flip through, so the reasons travel with the count.

## Same shelf: Feedback

- [NPS Strip](https://uibrik.com/components/nps-strip.md): A 0 to 10 recommend score on one track: the pick slides between scores in its group's colour, a band below lights the group, and the follow-up question changes for detractors, passives and promoters.
- [Effort Dial](https://uibrik.com/components/effort-dial.md): A gauge for customer effort scores: a gradient arc fills from green toward red as the knob follows your finger, ticks light as it passes, it settles into the nearest answer, and a hard answer asks what got in the way.
- [Pin Comment](https://uibrik.com/components/pin-comment.md) (Pro): Comment mode for any part of a page: a dock below the content turns it on, an outline glides to whatever is under the pointer and names it, a click drops a pin with your face and a composer that records the element and position, and pins open into threads you can resolve.
- [Rating Feedback](https://uibrik.com/components/rating-feedback.md) (Pro): A pill of stars that grows into a card: a low rating asks what went wrong, a high one opens a review box, and sending folds it into a thank-you pill whose check draws itself.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/feature-votes/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
