Hey @anton-karlovskiy
Can you please look at testbutton.tsx and clear my doubts that I DMed you.
To reiterate,
I am bit confused about how we are going to add in colors. My idea is to take in the prop which is defined in ts literals and use it as a variable
{ border border-${prop-color}': color === COLORS.primary} (this isn't the right syntax but I think you get the idea here)
instead of having individual style statements for colors
{ 'bg-primary': color === COLORS.primary }, { 'bg-secondary': color === COLORS.secondary }
Please let me know which according to you is the ideal way that we should proceed with
Hey @anton-karlovskiy Can you please look at
testbutton.tsx
and clear my doubts that I DMed you.To reiterate, I am bit confused about how we are going to add in colors. My idea is to take in the prop which is defined in ts literals and use it as a variable
{ border border-${prop-color}': color === COLORS.primary}
(this isn't the right syntax but I think you get the idea here)instead of having individual style statements for colors
{ 'bg-primary': color === COLORS.primary }, { 'bg-secondary': color === COLORS.secondary }
Please let me know which according to you is the ideal way that we should proceed with