Components
BaseFeedbackPrompt
“Was this helpful?” with yes and no, and an optional reason when the answer is no.
components/ui/BaseFeedbackPrompt.vue
View in the demo
Example
Was this helpful?
Was this helpful?
API
Props
Name | Type | Default | Description |
|---|---|---|---|
question | string | — | The question. Defaults to a translated “Was this helpful?”. |
thanks | string | — | The message after answering. |
reasons | { value: string; title: string; }[] | [] | Options to ask why after “No”, each { value, title }. |
Events
Name | Payload | Description |
|---|---|---|
@answer | [helpful: boolean, reason?: string | undefined] | (helpful, reason?). |