FAQ with helpfulness vote
A native accordion FAQ where each answer asks “Was this answer helpful?”, with a thank-you message and a remembered vote.
- Tailwind
- React
- CSS
- WordPress
Description
Each question opens and closes as a native details element (keyboard, screen readers and in-page search work out of the box). Under the answer, Yes and No buttons collect the visitor’s opinion: a thank-you shows at once, different for each answer, and the vote can be changed. It is remembered in the browser, so returning visitors see they have already answered. The buttons form a group named by the question “Was this answer helpful?”, show their state with aria-pressed, and the thank-you is announced by a role="status" region. To use the votes, just add a call to your analytics tool in the click handler. Without JavaScript the FAQ works and the vote buttons stay hidden. 44 px targets, AA contrast in light and dark mode, an arrow animated only without prefers-reduced-motion. Example: a bike rental in La Rochelle.
Code
Loading the code…
The code of this component in
Reviews
No reviews yet.
In the same spirit

Dark chevron FAQ
Coming soonAn accordion on a dark background, rounded cards and a chevron rotating on open.
- Tailwind
- React
- CSS
- WordPress

Searchable FAQ
Coming soonA field that filters questions as you type, for large FAQs.
- Tailwind
- React
- CSS
- WordPress

Two-column FAQ
FreeAn introduction and a contact link on the left, expandable questions on the right.
- Tailwind
- React
- CSS
- WordPress

A tight accordion within a single frame, for practical information pages.
- Tailwind
- React
- CSS
- WordPress