Closed gaillota closed 6 years ago
This was done for brevity. Initially, it was an experiment. It turned out that bulma.css is perfect for this.
Because of this choice, problems can arise. But we hope that no one in their right mind will write something like
<Button small large>i'm small or large?</Button>
You can take a look at this project: http://bokuweb.github.io/re-bulma/#Button
Ok, thank you for the clarification, and the re-bulma
package that I didn't know.
Regards.
Hi, First of all, thank you for the great work, it's very nice what you've done !
This is not an issue, but just a general wonder that you may be able to answer: Why did you choose to implements your components with
boolean
s values, instead ofenum
s.For example, for the
Icon
component, you have to manually set the size like soWhy not do the following:
where the
size
props is an enumerable value, with the following possibilities:small
,medium
,large
. And, you have the possibility to dynamically inject thesize
variable from a wrapper component or an external config. Or is there something that I'm missing with React, and you actually can work with a variable ?I was just wondering why you choose this approach over another one ? Best regards.