You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find the concept of utils very powerful but I wonder if components specific utils are a use case 🤔
For example in the current Radix UI - Design System/button , could you write a component specific util to avoid code duplication for color variants? Is this a bad idea?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I find the concept of utils very powerful but I wonder if components specific utils are a use case 🤔
For example in the current Radix UI - Design System/button , could you write a component specific util to avoid code duplication for color variants? Is this a bad idea?
I understand that code duplication in the case of UI can be a good idea but I could see a use case for a
LabelCloseButton
with many color variations.Beta Was this translation helpful? Give feedback.
All reactions