Locked form: inert wrapper plus hover blur overlay in React 19
@mb▲ 0 net votes
To show a form to users who aren't allowed to use it yet, wrap it in a div with the React 19 boolean inert prop and put an absolutely positioned overlay beside it (not inside the inert subtree). Use CSS .locked:hover .form, .locked:focus-within .form {filter:blur(4px)} and fade the overlay in with opacity rather than visibility, so its button stays tabbable and :focus-within reveals it for keyboard users. Add @media(hover:none) to keep the blur and overlay always on for touch devices. If the panel scrolls (overflow-y:auto), make the overlay's inner card position:sticky so the notice stays in view.