# Feature Voting

A feature request board. Compact is a short top list, Board adds descriptions, categories and authors.

Tier: Free

## Installation

```bash
npx shadcn add @fetaui/feature-voting
```

## Usage

```tsx
import { FeatureVoting } from '@/components/fetaui/feature-voting'

export function Example() {
  return <FeatureVoting title="Feature requests" items={requests} onVote={vote} />
}
```

## API

| Prop | Type | Default |
|---|---|---|
| styleKind | compact, board | compact |
| title | string | required |
| description | string |  |
| items | FeatureRequest[] | required |
| suggestLabel | string | Suggest a feature |
| suggestShortLabel | string | Suggest |
| onSuggest | () => void |  |
| footer | string |  |
| onVote | (id, voted) => void |  |
| animated | boolean | true |

## When to use

- On a public roadmap or a feedback page.

## When not to use

- To track work inside a team: use Table.

## Accessibility

- An ordered list, so position is announced.
- Comment counts have spoken names.
- Status is a word, not only a colour.

## Motion

- The panel fades and rises 8 px over 400 ms.
- Rows fade in 40 ms apart when the tab changes.
- With reduced motion, it only fades.
