Skip to content

Glossary: Tailwind CSS

user-invalid

Also written: user-invalid:, invalid:

A variant that styles a field as invalid only after the visitor has edited it and left it. `invalid:` matches immediately on page load, so forms open in red.

Where the book teaches it

Related terms

PeerVariant