I'm curious about the optimal method for styling child components based on their parent component. For instance, I want to design a list component that can be utilized in both a dropdown popup and a toolbar, each with its own unique style.
There are multiple approaches to tackling this challenge, but I am unsure of the best practice for enterprise-level applications.