FrontendDeveloper.in

Tailwind CSS question detail

How do you style based on parent state using Tailwind?

Use group on parent and group-* variants on children.

Example: parent group, child group-hover:text-cyan-700.

Back to all Tailwind CSS questions
Get LinkedIn Premium at Rs 399