Variant needs to change the value based on other vairants #274
Unanswered
vskidamian
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is a button with presented interface
and component
I want to pass diffrent paddings to
default
button, withstartIcon
button and withendIcon
button. Moreover every padding need to be diffrent based on currentsize
of buttonIs it proper way of doing it? The main reason about it is to not write paddings logic in any other variant
I've thought about passing size to
isStartIcon
and invariants
create something likeBeta Was this translation helpful? Give feedback.
All reactions