Why do you suggest changing the style component to tailwind? What is better about it? You are only changing the tool to one you know yourself. If the project is large and doesn't use tailwind but own styled components what then?
@rishiraj25485 ай бұрын
Great approach
@airixxxx5 ай бұрын
Great, the only thing I would change is either remove the icon property and let the dev put the icon in the position they want via children, or make the icon property a type with icon and slot: "start | end" for positioning, I feel like passing an icon prop and having to position the children passing a class is not very clean.