Newsletter unsubscribe form
An honest unsubscribe page: address prefilled from the link, choice between stopping everything or receiving less, optional reason and an undo.
- Tailwind
- React
- CSS
- WordPress
Description
A complicated unsubscribe ends up as a spam report. This page gets straight to the point: the address is prefilled from the ?email= parameter of the unsubscribe link, “stop everything” is checked by default, and an alternative offers to receive only the monthly digest (the button text follows the choice). The reason is optional, only appears for a full unsubscribe, and the detail field only opens for “Other reason”. After confirming, the form locks, the message recalls that order emails keep coming, and an “Undo and stay subscribed” button takes focus to go back in one click. Options and texts are edited in the markup; sending plugs into your emailing tool. 44 px native radio buttons, fieldsets with legends, role="status" messages, AA contrast in light and dark mode, no horizontal scrolling from 360 px. Example: the newsletter of an online bookshop.
Code
Loading the code…
The code of this component in
Archive contents
formulaire-desinscription-newsletter-html-tailwind.zip3 files · 6 Ko
- index.html12 Ko
- README.md4 Ko
- LICENSE.md1 Ko
Tags
Updated on December 2, 2026.
Reviews
No reviews yet.
In the same spirit

A recruitment form for small businesses: target position, introduction, CV checked in the browser and GDPR consent, with inline errors.
- Tailwind
- React
- CSS
- WordPress

A quote request form whose labels, hints and error messages are full French sentences, still readable at 320 px: nothing overflows, nothing is cut off, and each error is tied to its field.
- Tailwind
- React
- CSS
- WordPress

Visitors pick a package and tick options: the pre-tax total, VAT and total including tax update live, and the summary is sent with the contact form.
- Tailwind
- React
- CSS
- WordPress

A short NPS survey: a 0 to 10 score as radio buttons, then a follow-up question adapted to whether the customer is a detractor, passive or promoter.
- Tailwind
- React
- CSS
- WordPress