# Feedback Prompt

A yes or no question. Yes opens a note, No adds reason chips, and sending says thanks.

Tier: Free

## Installation

```bash
npx shadcn add @fetaui/feedback-prompt
```

## Usage

```tsx
import { FeedbackPrompt } from '@/components/fetaui/feedback-prompt'

export function Example() {
  return <FeedbackPrompt onSubmit={save} />
}
```

## API

| Prop | Type | Default |
|---|---|---|
| question | string | Was this helpful? |
| reasons | string[] | four reasons |
| thanks | string |  |
| defaultStage | default, positive, negative, sent | default |
| onSubmit | (value) => void |  |
| animated | boolean | true |

## When to use

- At the end of a docs page, answer or help article.

## When not to use

- For a long survey: use a form.

## Accessibility

- Yes and No use aria-pressed, and reason chips are toggles in a labelled group.
- The thank you is announced.

## Motion

- The panel fades and rises 8 px over 400 ms.
- Chips and note fade in over 240 ms, and Sent replaces the card.
- With reduced motion, it only fades.
