Skip to main content
Question

Nested icon size property override


Hi. I have a button component with several variants, including sizes (sm, md, lg).
The button has a nested icon component, and depending on the button size, the icon size also varies (sm, md, lg).

Let’s say I select the lg button variant and change the size of the nested icon component to lg, all the button variant nested icon sizes become lg as well.

Example:

How can I keep this size override on the different button variants, so the lg button has a lg icon and so on?

This topic has been closed for replies.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings