Skip to content

Glossary: Tailwind CSS

Peer

Also written: peer, peer-checked:, peer-user-invalid:

An input marked `peer`, so a later sibling can react to its state with variants like `peer-checked:`. The peer must come before the element you style.

Where the book teaches it

Related terms

GroupSibling