Skip to content
duxt

DuxtPageFeedback

Was this page helpful?

The block at the foot of every page.

Usage

<DuxtPageFeedback @feedback="(helpful) => track(helpful)" />

API

Emits

EventPayloadWhen
feedbackhelpful: booleanThe reader answers

Slots

SlotPropsWhat it replaces
default{ answered, answer }The question and buttons

Notes

A slot with an event and no backend, and that is the whole design. The layer stores nothing and sends nothing: it has no business knowing where a consumer's analytics live, and a documentation theme that phones home by default is not one to publish. The answer lives in the component's own state for the length of the visit and nowhere else — a route change resets it, because a new page is a new question.

Wiring it up is a guide of its own: Collect page feedback.

Was this page helpful?