Skip to main content
hfu
New Participant
September 14, 2026
Question

Slot Icon Replacement Not Reflected in Hover State

  • September 14, 2026
  • 1 reply
  • 9 views

I’m using Slot feature for the icon part of our button component. Since our icons come from an external source, Slots make it easy to swap in different icons as needed.

However, when I replace the Slot icon, the button’s hover state still shows the default icon instead of the replaced one.

Is there a way to make the hover state reflect the swapped icon? 
 

 

1 reply

hfu
hfuAuthor
New Participant
September 15, 2026

I figured out the reason, I don’t know know why but my slot with same name were recognized as different slots. I removed one of them and copied the slots and it’s working now.