Age verification in React
A legal-age check window for a wine shop or brewery, accessible, remembered for the session and with the French Evin law notices.
Here is an excerpt of this component's code in React. The full code is free for members, ready to copy into your project.
This component also comes in
The code in React
import { useEffect, useRef } from "react";
const styles = `
[data-mva] [hidden] {
display: none;
}
[data-mva-dialog]::backdrop {
background: rgb(20 8 12 / 0.82);
backdrop-filter: blur(6px);
}
`;Free component: copy it freely, including for commercial projects.
Other modals components in React
Modals components in React
A search covering the page, with popular suggestions, opened from the navigation bar.
- Tailwind
- React
- CSS
- WordPress

A short form in a window to request a call from an advisor.
- Tailwind
- React
- CSS
- WordPress

A small window asking to confirm an action before running it.
- Tailwind
- React
- CSS
- WordPress