Component packs › Hearsay › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
features | FeatureRequest[] | ||
voted | string[] | Ids you have voted for. | |
onVote | (id: string, voted: boolean, votes: number) => void | ||
autoplay | number | false | Showcase mode: someone votes every N ms while visible. |
readonly features: FeatureRequest[]destroy(): voidimport FeatureVoting from './FeatureVoting';
<FeatureVoting />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Feedback widgets.