formaat-design / reshaped

Community repository for storing examples, reporting issues and tracking roadmap
https://reshaped.so
97 stars 3 forks source link

Custom icon slot for buttons in figma #214

Closed b-graves closed 5 months ago

b-graves commented 5 months ago

It is possible to add custom icons to buttons in the code by passing a custom icon as a prop to a button, but it's not possible to do this in figma without detaching from the component. Could we have an option to have a slot instead of an icon? Thanks!

blvdmitry commented 5 months ago

Hey, right now you can try adding your custom icons to the icon component in the library but we have indeed discussed using icons through swapping instances of components. We'll plan the migration for this approach soon

b-graves commented 5 months ago

Ah I see thank you, I will try that