Component packs › Hearsay › Feature Voting

Feature Voting

Every vote is a push pin that flies from the button into the card, and the requests re-sort by votes with a FLIP reflow as they climb.

Feature Voting is a voting from Hearsay, a component pack with 6 feedback widgets: Feedback widgets where every answer is pinned to a board you watch fill. Price: $2 for the whole pack.

Built with: vote pins, FLIP re-sort, take your vote back.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Feature Voting props

PropTypeDefaultDescription
featuresFeatureRequest[]
votedstring[]Ids you have voted for.
onVote(id: string, voted: boolean, votes: number) => void
autoplaynumber | falseShowcase mode: someone votes every N ms while visible.

Methods on the ref

Use it in React

import FeatureVoting from './FeatureVoting';

<FeatureVoting />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Hearsay

Good for: Feedback widgets.