Mark a parent group; children react to ITS state.
Example#
<a class="group flex items-center gap-2">
<span>Docs</span>
<span class="opacity-0 group-hover:opacity-100 transition">→</span>
</a>Stacking#
Prefix order is screens → variants → utility. These variants combine with every screen (sm: md: lg: xl:…) and with each other.
Best practices#
- Reveal-on-hover affordances
- group-hover, group-focus, group-active, group-disabled
Related#
variants/index|Variants hub · responsive/index|Responsive · utilities/index|Utilities
